Hot answers tagged

18

They seem to mean simple textual concatenation / insertion. In other words, even though the source text was split into individual files, the program wasn't split into modules.


6

That's basically the 3-clause BSD license. It means exactly what it says. If you redistribute the binary, you must reproduce the copyright notice, list of conditions and the disclaimer in your documentation. In practice, this means you're going to be reproducing the license in its entirety in your Developer Guide, on its own page titled "License," and ...


3

Your proposed approach is as follows: Code your interpreter in C. Compile the C to Javascript using Emscripten or asm.js. Run Javascript using (I guess) a browser resident Javascript implementation. (If the Javascript implementation is not browser resident, then I don't see the point of Javascript. Compiling the C directly to native code will be faster.) ...


2

As you mentioned 8086 processor i'm explaining with reference to 8086: 8086 is 16-bit processor(16-bit Data Bus means: no.of Physical lines to carry-out or carry-in are 16 lines some time ALU size also) and 20-bit Address Bus(20-bit Address Bus means : no.of Physical lines to carry-out the address are 20) these lines are nothing but 8086-pins. To save No....


2

Variable-length arrays in C99 are still fixed-size; you just don't know the size until runtime. They're not dynamic, so you can't declare int foo[] and start accessing elements. There's no way to know how much space to allocate for it and there's no magic that goes on behind the scenes that rearranges everything as the array grows. In earlier versions of ...


2

You will probably make it a lot easier on yourself and avoid a lot of user errors if you allow the declaration of variable-length arrays to be delayed until a point where the size is known. Then you don't have to invent a syntax for assigning the array size and you don't have to deal with differences in the order in which arrays are declared and in which ...


2

Your architecture doesn't have a direct path from memory to the PC - the only thing that can be done with the result of a memory read is storing it in a register. In order to implement an indirect jump, you'd need to add a path from memory to the data path that is used to update the program counter. That's quite simply achieved by adding an additional mux ...


1

Without any further coordination, at least one writer plus one reader can result in a classic race condition. There are a number of factors involved. If there is only one memory location involved (a byte, or aligned word) it is possible that two threads, one writer and one reader, accesing the same location, do effectively communicate. (Alignment is ...


Only top voted, non community-wiki answers of a minimum length are eligible