Is a 2M executable ... unusual?

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
Post Reply
kazade
Insane DCEmu
Insane DCEmu
Posts: 145
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Tue May 02, 2017 3:11 pm
Has thanked: 3 times
Been thanked: 34 times

Is a 2M executable ... unusual?

Post by kazade »

This might be a silly question, but I finally got a Dreamcast application compiled which uses my (admittedly very large) game library. With all the excess symbols stripped the final elf/bin files are just over 2M in size!

What size are Dreamcast executables normally?
User avatar
BlueCrab
The Crabby Overlord
The Crabby Overlord
Posts: 5652
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has thanked: 9 times
Been thanked: 69 times
Contact:

Re: Is a 2M executable ... unusual?

Post by BlueCrab »

For something in C++ with a fairly large library being linked in, 2MiB doesn't seem out of the realm of possibilities. It'd probably be on the large size of things I've seen, but not necessarily overly so.
User avatar
bogglez
Moderator
Moderator
Posts: 578
Joined: Sun Apr 20, 2014 9:45 am
Has thanked: 0
Been thanked: 0

Re: Is a 2M executable ... unusual?

Post by bogglez »

I wrote a project from the ground up without Kos and newlib that creates executables in the kilobyte range.
Even that became quite fat (1mb?) when I used GCC 6. So disabling certain features, standard library, debugging, runtime checks should go a long way.
Wiki & tutorials: http://dcemulation.org/?title=Development
Wiki feedback: viewtopic.php?f=29&t=103940
My libgl playground (not for production): https://bitbucket.org/bogglez/libgl15
My lxdream fork (with small fixes): https://bitbucket.org/bogglez/lxdream
Post Reply