Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / DBC Encanced - A 1k dba file turns into 1.5 megabyte executable

Author
Message
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 22nd Sep 2006 00:07
Hello,

No matter what I do, when I try to create an executable out of a 2 line script in DBC, it turns it into a 1.5 megabyte executable. I'm using Build Executable and not Build Final.

What gives?

Enjoy your day.
Profit
18
Years of Service
User Offline
Joined: 19th Feb 2006
Location: United States
Posted: 22nd Sep 2006 02:12
It may have something to do with the fact that it includes the entire 3d engine into the EXE even if you don't use it. I think a man named The Winch created something to make them smaller?

common people are walking in line.

Mitsu Fly Ride.
D Ogre
20
Years of Service
User Offline
Joined: 19th Nov 2003
Location:
Posted: 22nd Sep 2006 02:12 Edited at: 22nd Sep 2006 02:14
When compiling a DBC program, a runtime version of the language is merged and saved
with the compiled code. Essentially the entire command set is contained
within the executable. DBC doesn't compile to machine code which means that
it gets enterpreted during execution.

<EDIT>

Ack!!! You answered just before me. Oh, well...
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 22nd Sep 2006 02:20
Thanks guys,

I didn't realize it had that much overhead!

Enjoy your day.
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 22nd Sep 2006 15:49
It does, but that 1.5MB packs down nicely. Even a standard zip will take it to the 600KB mark. DBC isn't totally alone in this either, you'll find similar results from languages like Blitz or Torque. Pure Basic is the only really superb 'tiny EXE' language I've seen in a long time (beyond C++ that is), but if you start doing any 3D in that you get the whole Ogre libs packed into the EXE, and suddenly it jumps up in size again.

"Bite my shiny metal ass" (Futurama)
"Don't ping my cheese with your bandwidth" (Dilbert)
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 22nd Sep 2006 22:00
I guess I got surprized because I've seen smaller executables of DBC. I'm guessing they were created in an earlier version and therefore didn't have the same number of commands or functions.

Enjoy your day.
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 23rd Sep 2006 21:40
The DBC EXEs haven't changed all that much really. The EXE could well have been packed with the likes of UPX.

"Bite my shiny metal ass" (Futurama)
"Don't ping my cheese with your bandwidth" (Dilbert)

Login to post a reply

Server time is: 2024-09-25 09:42:24
Your offset time is: 2024-09-25 09:42:24