Category Archives: C

Run time machine code generation and execution

Some Common Lisp implementations (and I believe other languages’ also, but I don’t know of any) are incremental compilers, which means they are able to read Lisp code during program execution, compile it and make it immediately available for execution, … Continue reading

Posted in C, English, Programming | Leave a comment

Using feof() and fread()

When reading single bytes from a file in C, one must pay attention to the correct usage of feof() and fread(). At first, the following piece of code seems to work correctly: const char *filename = "hello"; unsigned char byte; … Continue reading

Posted in C, English, Programming | 3 Comments