Page 1 of 1

sdcc binaries now packaged with z88dk nightly builds for win and mac

Posted: Sat Apr 02, 2016 5:41 am
by alvin
The nightly builds for windows and mac osx are now completely self-contained such that compilation using sdcc as C compiler no longer requires separate installation of sdcc. Necessary patches have been applied to z88dk's sdcc binary. As usual, the sdcc binary has been renamed from "sdcc" to "zsdcc" so that a z88dk install does not interfere with an sdcc install.

z88dk is also now using sdcc's preprocessor for C code rather than z88dk's native preprocessor. A side effect is line numbers for errors reported by sdcc are now correct.

Posted: Sat Apr 02, 2016 2:19 pm
by alvin
alvin wrote:z88dk is also now using sdcc's preprocessor for C code rather than z88dk's native preprocessor.
That is, for sdcc compiles.

Another side effect is that #asm and #endasm can no longer be used to inline asm in C functions. Instead only sdcc's __asm and __endasm; will work. Perhaps this will be patched in the future but the correct reporting of line numbers in C source is more important for users.

Posted: Sat Apr 02, 2016 4:21 pm
by dom
Actually, the very old #pragma asm/#pragma endasm will work with both compilers.