pouët.net

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?
added on the 2008-08-28 07:54:57 by blueflame blueflame
I heard rumors that GCC would make 20 bytes more than the VC8 compiler. About VC6 I can't really tell you.
added on the 2008-08-28 08:07:19 by xTr1m xTr1m
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...
added on the 2008-08-28 10:08:33 by LiraNuna LiraNuna
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. :)
added on the 2008-08-28 10:09:52 by skrebbel skrebbel
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.
added on the 2008-08-28 10:17:24 by gopher gopher
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.
added on the 2008-08-28 10:20:08 by LiraNuna LiraNuna
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
added on the 2008-08-28 10:21:46 by LiraNuna LiraNuna
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
added on the 2008-08-28 10:25:00 by hitchhikr hitchhikr
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.
added on the 2008-08-28 11:42:23 by Blueberry Blueberry
Interesting suggestion Blueberry, could you elaborate a bit?
added on the 2008-08-28 11:58:47 by xTr1m xTr1m
100% asm!
added on the 2008-08-28 12:15:29 by kusma kusma
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.
added on the 2008-08-28 13:20:28 by Moerder Moerder
100% Assembler 4 ever! \o/

(all the mercury 4ks are 100% asm from scratch - because we can.)
added on the 2008-08-28 16:29:45 by las las
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
added on the 2008-08-28 16:45:04 by blala blala
the future of 4ks lies in shaders primarily
added on the 2008-08-28 16:46:11 by gopher gopher
the future is dead.
added on the 2008-08-28 18:30:16 by trc_wm trc_wm
The future is near hear.

Carpe Diem !
added on the 2008-08-28 18:40:54 by Aeko Aeko
I hear the future is here.
added on the 2008-08-28 18:44:00 by Intrinsic Intrinsic
:D

true {}
added on the 2008-08-28 18:56:30 by Aeko Aeko
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!!
added on the 2008-08-29 22:10:31 by superplek superplek
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.
added on the 2008-08-29 22:30:23 by ferris ferris

login