[Vm-dev] About Cog on linux

Igor Stasenko siguctua at gmail.com
Sat Feb 12 21:26:56 UTC 2011


On 12 February 2011 21:21, Igor Stasenko <siguctua at gmail.com> wrote:
> Ok it seems like i found the cause of this:
>
> (gdb) print VMBIGENDIAN
> $70 = 1
>
> weird.. ;)
>

Okay, i managed to build Stack VM on unix, which 'works'.
Spent too much time on this elusive LSB_FIRST=1 macro undefined in
cmake configs...
Damn... that's why i HATE C.
It is always like that - not the code itself, but some hideous
flag/macro. And of course, no any clue what it for,
and what it does, and how it can be used.


P.S. Yeah, compiling sqUnixHeartBeat.c with -O2 still crashing VM
after few seconds running,
so i took same flags as you put in makefiles.

Not sure about interpret.c. Should i also use -O1? You said that
compiler does something wrong with alloca() calls.
Is there a way to test that by invoking some primitive or do something
else to force to reveal itself?


-- 
Best regards,
Igor Stasenko AKA sig.


More information about the Vm-dev mailing list