|
From: | grischka |
Subject: | Re: [Tinycc-devel] tcc: fix -m32 and add -m64 option |
Date: | Sun, 12 Dec 2010 16:53:02 +0100 |
User-agent: | Thunderbird 2.0.0.23 (Windows/20090812) |
Henry Kroll wrote:
Fixed -m32 so it *always* works, no matter who calls it. (Unless no suitable 32 bit code generator can be found, in which case it always gives an error, so the programmer will know it did not work and why.) Added -m64 option in the same function. Handles all combinations of 64/32 -m## -> 64/32 including future ones.
What about the presence? $ ls *tcc.exe tcc.exe i386-win32-tcc.exe x86_64-win32-tcc.exe $ ./tcc -m64 examples/fib.c tcc: error: -m64 cross compiler not installed
http://repo.or.cz/w/tinycc.git/commitdiff/b3be007afa46a9bb099b261c14c1dc42cc5fff99 Options -m33 and -m65 are reserved for testing to force an error. Using them caused me to find a bug in my error handler format string. I was using %s instead of %i and I never caught it because these errors should never be generated. But anyway, for completeness, the following patches... http://repo.or.cz/w/tinycc.git/commitdiff/ffb9fcc5a24e388776b383b1c0f1233dd1c1e677 http://repo.or.cz/w/tinycc.git/commitdiff/c6f5d819af91284959d02bc109dbdb0d9cbb0c15
[Prev in Thread] | Current Thread | [Next in Thread] |