On Feb 29, 2008, at 8:51 AM, Joel Borggrén-Franck wrote:
On Fri, Feb 29, 2008 at 2:36 PM, Alex Queiroz asandroq@gmail.com wrote:
So the output of gsc will be the same whether it was compiledwith these options or not? The only thing it changes is the compilation by GCC, right?
From the wiki:
"--enable-single-host compile each Scheme module as a single C function"
to me this implies that the difference is in how gsc generates c-code from scheme.
The C code that gsc generates is the same either way; if you look at the .c file then you'll see that it's all C macros. These C macros are expanded differently depending on whether ___SINGLE_HOST is defined when gcc compiles the .c file (which, in turn, is determined by --enable-single-host).
To see the difference in macro expansion, add -save-temps to the compile line in gsc-cc-o and look at the .i file.
Brad