Re: compiling translated files on Linux AMD64
- Posted by Kenneth Rhodes <ken_rhodes30436 at yaho?.?om> May 21, 2008
- 766 views
Success! In order to use the -m32 switch, the 32bit version of gcc must be installed in addition to the native gcc 64 bit compiler. ./ecu ed.ex -- generated the *.c files and emake edit the emake file to include the -m32 switch: echo compiling with GNU C echo main-.c gcc -m32 -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer main-.c echo ed.c gcc -m32 -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer ed.c echo ed_0.c gcc -m32 -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer ed_0.c echo ed_1.c gcc -m32 -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer ed_1.c echo graphics.c gcc -m32 -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer graphics.c echo get.c gcc -m32 -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer get.c echo file.c gcc -m32 -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer file.c echo wildcard.c gcc -m32 -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer wildcard.c echo dll.c gcc -m32 -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer dll.c echo syncolor.c gcc -m32 -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer syncolor.c echo init-.c gcc -m32 -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer init-.c echo linking gcc -m32 ed.o main-.o ed_0.o ed_1.o graphics.o get.o file.o wildcard.o dll.o syncolor.o init-.o /home/ken/euphoria/bin/ecu.a -lm -ldl -oed rm -f *.o echo you can now execute: ./ed rm main-.c rm main-.h rm init-.c rm ed.c rm ed_0.c rm ed_1.c rm graphics.c rm get.c Everything is sooooooooo simple-- in retrospect. I'm not sure what would happen if the -m32 switch was added to the emake generation code. If under a 32bit system the switch is just ignored, then we've got a genuine kludge, eh? Ken Rhodes Folding at Home: http://folding.stanford.edu/ 100% MicroSoft Free SuSE Linux 10.3 No AdWare, SpyWare, or Viruses! Life is Good,