David Given
David Given
tmpnam() is known to be flawed. The best option here is something like tmpfile() or mkstemp() which atomically creates and opens (and deletes) a file, so it's not accessible by...
I think that's not technically a bug --- casting a function pointer to an object pointer in C invokes undefined behaviour. The EM spec has different encodings for reference-to-data-plus-offset and...
asize and astrip only work on object files, rather than on the linker output files. So you'll need to strip all your object files one at a time before linking....
Belatedly: these have been failing for a while. The CP/M tests are just noise and the other tests depend very much on which architecture you run the tests on ---...
At least some of these should be fixed by #200.
I'm afraid the answer is 'it depends'. The ACK's generated code requires the compiler support libraries to operate --- libem and libfp (if you want floating point); eliminating these dependencies...
Build a CP/M binary --- `ack -mcpm something.c` --- and add `-v -v`. That'll show you the raw command line used. The interesting part's the linker invocation, which will specify...
To specify the start address, use the `-b` option when calling `em_led` (the linker) to specify the base address of segment 0 (which is the text segment). If you build...
They are platform agnostic --- look in lang/cem/libcc.ansi --- but there's no such thing as platform-independent _compiled_ code; it'll be built with a certain compiler configuration and reusing the same...
cpp.ansi is the C preprocessor. You should have a man page for it; try `man ncpp`. cpm/as is, in this specific case, generic --- but the build system rebuilds all...