Best 4k compiler
category: general [glöplog]
What is the best compiler for 4k in windows these days? For a long time it was visual studio 6. Can new compilers make as tight code as vc6 or has crinckler for example changed the situation?
I heard rumors that GCC would make 20 bytes more than the VC8 compiler. About VC6 I can't really tell you.
as far as I love GCC, I don't recommend using it as a compiler on windows. why? because all the builds are old - seriously old. GCC 3.4.4 on cygwin/mingw with static link of gnulibc. not fun...
it's quite a shame in fact. are there any reasons besides nobody being interested to do newer windows versions of gcc? not that that isn't reason enough, though. :)
for nvision i used vs2008 and vs2005 in parallel.
actually during developmnent i couldnt say who's the winner, sometimes the crunched exe was smaller with 2005, sometimes with 2008 (only differing by ~10 bytes)
a big surprise was the final version with 2008 which was 52 bytes smaller than the 2005 version.
so basically i wouldnt say there's a winner. i recommend to try out different compilers in parallel and check the packed size. its impossible to predict how big it will be in the end anyway.
actually during developmnent i couldnt say who's the winner, sometimes the crunched exe was smaller with 2005, sometimes with 2008 (only differing by ~10 bytes)
a big surprise was the final version with 2008 which was 52 bytes smaller than the 2005 version.
so basically i wouldnt say there's a winner. i recommend to try out different compilers in parallel and check the packed size. its impossible to predict how big it will be in the end anyway.
I believe mingw team were 'waiting' for a stable branch for GCC, which of course will probably won't ever come, knowing how GCC releases work...
I also think there was threading problems with GCC 4, although I did hear some rumors of 4.3.0 running with a new "slji" (?) threading core.
I also think there was threading problems with GCC 4, although I did hear some rumors of 4.3.0 running with a new "slji" (?) threading core.
quickly checking the mingw download page, it turns out there is a v4.3.0 gcc, although marked as alpha. I need to try this someday
Compilers aren't made to generate code to be packed anyway, i recommend you to use assembly language for complete control instead.
GCC 4 for windows is being currently tested and is available here:
http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=241304&release_id=596917
GCC 4 for windows is being currently tested and is available here:
http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=241304&release_id=596917
Write your intro in C++ using whatever compiler. Study the Crinkler compression report carefully to determine which functions take up most space. Then rewrite everything in assembler.
Interesting suggestion Blueberry, could you elaborate a bit?
100% asm!
Quote:
Study the Crinkler compression report carefully to determine which functions take up most space.
I'm using gcc/gzip and study the map files / objdump disassemblies. It's also useful to see what exactly happens when you change compiler switches.
100% Assembler 4 ever! \o/
(all the mercury 4ks are 100% asm from scratch - because we can.)
(all the mercury 4ks are 100% asm from scratch - because we can.)
i told that some1 @evoke,but he didnt want to believe me...asm forever !
that == the future of 4ks lies in assembler only !
nasm + crinkler
the future of 4ks lies in shaders primarily
the future is dead.
The future is near hear.
Carpe Diem !
Carpe Diem !
I hear the future is here.
:D
true {}
true {}
4ko demos should be released with source code. I gave the source code of my the cartoon fish....full asm, no dll.
Quote:
Interesting suggestion Blueberry, could you elaborate a bit?
let me be a good sport and help you: disregard the 100% rewrite part, rethink it and draw your own conclusion.
furthermore: 100% asm!!
Don't listen to niels, he doesn't even like 4ks!
Blueberry is right...in crinkler you can use flags to have it output a report file which shows all the functions etc and their original sizes, compressed sizes, and compression ratios...use these to find big bottlenecks in your code and yeah use whatever compiler you want.