Everyone? It's only me using it!
Everyone else is suggesting me to use other compilers with full size optimization and stuff, but I'm just that retarded and confused that I stick to TCC![]()
Everyone? It's only me using it!
Everyone else is suggesting me to use other compilers with full size optimization and stuff, but I'm just that retarded and confused that I stick to TCC![]()
But... but... IT'S TINY!
I don't know why zeeky said it's probably not meant to optimize size.. that's one of its goals.
Its the easiest to use tho, I just tried compiling hello world with gcc and the commands -Os -fno-inline -nostdinc -fomit-frame-pointer as told in the WDYNHW thread and it says it cant fint stdio.h
using -Os only made the exe 19kb while tcc makes it 1.2kb
If you included -s in that list of commands, or ran strip yourself after gcc, you would notice that the filesize drops significantly. GCC gave me something like 6kb without much work on my part, the same as Visual C++ without any extra work. Replacing Visual C++'s linker with Crinkler dropped the filesize below 1kb.
edit:
This without any previous experience with GCC or Visual C++ or even the C language
lol
Edited:
if you don't get the hint, -nostdinc means no standard library inclusion meaning it's not supposed to find stdio.h with that option.
Haha yea i got that, but in that case its a pointles command. Most if not all programs would use the standard library somewhere.
Which is perfect for this kind of competition isn't it?
Code:sergeb@megusta ~/src/sizetest $ cat test.c #include "stdio.h" int main(int argc, char **argv) { printf("Hello I'm %s called with %i arguments.\n", argv[0], argc); return 0; } sergeb@megusta ~/src/sizetest $ gcc test.c -Os -s -ffunction-sections -fdata-sections -fomit-frame-pointer -fno-inline -m32 -o testgcc sergeb@megusta ~/src/sizetest $ tcc test.c -o testtcc sergeb@megusta ~/src/sizetest $ wc -c testtcc 3376 testtcc sergeb@megusta ~/src/sizetest $ wc -c testgcc 3212 testgcc sergeb@megusta ~/src/sizetest $ ./testtcc Hello I'm ./testtcc called with 1 arguments. sergeb@megusta ~/src/sizetest $ ./testgcc Hello I'm ./testgcc called with 1 arguments.
Add a how-to-crinkler on top of that and I'm switching over![]()
Crinkler is Windows-only.
operating system kernels
I'm more interested in 64k demos and demos without size limits.
I'm sure I've posted ASD Lifeforce before in some WAYWO, but here it is anyway, because I love it; especially the music:
http://www.pouet.net/prod.php?which=31571
Other demos by ASD are also very nice.
My personal favorite from last year:
This is one that you might want to watch on your own hardware, if you've got a high-end graphics card with a lot of memory that is.
http://www.pouet.net/prod.php?which=55558
And one of my favorite 64k's:
If you watch this one on your own PC, beware of false anti-virus positives. I assume it's because the packer it uses has been used to pack malware in the past.
http://www.pouet.net/prod.php?which=25776
where on windows, unless you mean VC++ only
...
He's not running windows, not us.
He might still know how to use it
gcc Demo.c -Os -s -ffunction-sections -fdata-sections
-fomit-frame-pointer -fno-inline -m32 -lopengl32 -lgdi32 -o demo_gcc
tcc Demo.c -lopengl32 -lgdi32 -o demo_tcc.exe
demo_gcc = 11KB
demo_tcc = 4KB
Hmm..
Blame Cygwin. You're better of using MSVC++ on Windows.
Cygwin? Where? I'm using Mingw32
Well, blame mingw then.
wtf just use vc++
Edited:
also, anyone know how i can make a .net assembly as small as possible without compressing it? i'm shoving assemblies into object files to see how crinkler handles them. i took a small winforms app and managed to compress the cil from 9436 to 3972 with metadata intact.
eventually i want to figure out how to invoke the clr on it.
Still do, it was only a floppy provided with my Amiga.
-nevermind, seems like I shouldn't use the standard library-
Those are the hottest old school silhouette boobs I have EVER seen!
Finally decided to read this thread. For those of you on Windows trying to get the smallest executable, take a look at this
It's done in the same spirit as the tiny elf (for Linux and FreeBSD) and the tiny mach-o (For Darwin based operating systems) projects.
You'll learn a lot, I promise. :)
Edited:
You may also find these pdfs interesting.
(Yes I realize the Mach-O link is to html. just go with it)
crinkler does all of this for you, along with other pe abuse.
This thread is awesome.
I love how this shit started with the cracker scene (Razor, Skidrow, etc) and evolved into it's own scene.
If anyone's looking for resources on making small demos, iq (from Elevated) has a lot:
http://www.iquilezles.org/www/
bumping this thread because within the next couple days i'm going to be working on a 4k intro, which i will hopefully eventually post about.
Is his use of "what" a valid English dialect somewhere, or does he just have some vendetta against the word "which"?
It says he's not a native English speaker right there on the first page.
Not sure how I missed that.
Went to Assembly Summer last year, biggest demoscene/lan party in Finland. Going there again this year.
Demos are nice, but they're even nicer on a big-ass fucking screen that's measured in meters instead of inches.
(Note: they're not nice on the big screen if you're in the audience trying to fucking sleep).
The Finnish indie game industry and demoscene is small. There's some overlap between the makers of Zen Bondage and Zen Bound.