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.

Geek Culture / Information Retained in EXE's

Author
Message
Dark Java Dude 64
Community Leader
14
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 14th Dec 2010 05:28 Edited at: 18th Mar 2011 07:07
Hello, ive always wondered, whenever im playing a dbpro game in exe form, if it runs into an error it will say error at line ####. How does a complied exe retain the line number?

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.

Attachments

Login to view attachments
Silvester
19
Years of Service
User Offline
Joined: 7th Dec 2005
Location: Netherlands
Posted: 14th Dec 2010 07:38
As far as I know DBP compiles everything into binary files, which are then packed into a standard *.exe, which will be unpacked and decoded upon running the program and it'll more or less use the code you wrote as a script.. Or at least that's what I've been told quite some time ago, as you can easily tear the *.exe apart and see all media and source files included.

Fatal Berserker
14
Years of Service
User Offline
Joined: 2nd Jul 2010
Location:
Posted: 14th Dec 2010 13:42
Quote: "Or at least that's what I've been told quite some time ago, as you can easily tear the *.exe apart and see all media and source files included."

But, that means that it will be easy to reverse engineer?

Smoke me a kipper, ill be back for breakfast.

MMORPG -- Many Men Online Role Playing as Girls

G.I.R.L -- Guy In Real Life
Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 14th Dec 2010 13:45
When it compiles the code it adds instructions to indicate the line number each time it changes.
Dark Java Dude 64
Community Leader
14
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 14th Dec 2010 23:24
Cool!!!

Behold the new marble game coming soon: Marbsticle Course > > >http://forum.thegamecreators.com/?m=forum_view&t=178472&b=8&p=0 coming January to February 2011
thenerd
16
Years of Service
User Offline
Joined: 9th Mar 2009
Location: Boston, USA
Posted: 15th Dec 2010 00:20
Quote: "As far as I know DBP compiles everything into binary files, which are then packed into a standard *.exe, which will be unpacked and decoded upon running the program and it'll more or less use the code you wrote as a script.. Or at least that's what I've been told quite some time ago, as you can easily tear the *.exe apart and see all media and source files included."
That's only partially correct... the DBpro dlls and media are embedded into the EXE, but the source code is not included. DBC did this, which is why it has basically instant compilation times. Dark Basic Pro, on the other hand, compiles to machine code for maximum performance. The code is almost impossible to decompile with a dbpro exe.


Dark Java Dude 64
Community Leader
14
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 15th Dec 2010 00:40
ok, so if it packs all dlls into the exe, wouldnt it pack in dx9.0c? because i hear that if you dont have that you cant run the program :/

Behold the new marble game coming soon: Marbsticle Course > > >http://forum.thegamecreators.com/?m=forum_view&t=178472&b=8&p=0 coming January to February 2011
thenerd
16
Years of Service
User Offline
Joined: 9th Mar 2009
Location: Boston, USA
Posted: 15th Dec 2010 01:19
No. it packs in all dbpro dlls... you still have to install dx separately, Although you could set up an installer to do that.


Dark Java Dude 64
Community Leader
14
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 15th Dec 2010 01:38
i see.

Behold the new marble game coming soon: Marbsticle Course > > >http://forum.thegamecreators.com/?m=forum_view&t=178472&b=8&p=0 coming January to February 2011
Kevin Picone
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 15th Dec 2010 03:03
The Nerd,

Quote: " the DBpro dlls and media are embedded into the EXE, but the source code is not included. DBC did this, which is why it has basically instant compilation times.
"


No, DB classic compiles to byte code for the virtual machine. The source code isn't included in the EXE.

The compile time difference occurs not because exporting binary is inherently slower than byte code, it's more the method Dbpro is using just isn't all that efficient.


Quote: " Dark Basic Pro, on the other hand, compiles to machine code for maximum performance. The code is almost impossible to decompile with a dbpro exe."


Sorry, but this is a myth. The DBpro compiler, like the majority of compilers (if not all) are by reversable by nature. Code exported form Dbpro has a consistent pattern for each operation, making de-compilation very viable.

thenerd
16
Years of Service
User Offline
Joined: 9th Mar 2009
Location: Boston, USA
Posted: 15th Dec 2010 03:10 Edited at: 15th Dec 2010 03:11
Quote: "No, DB classic compiles to byte code for the virtual machine. The source code isn't included in the EXE.

The compile time difference occurs not because exporting binary is inherently slower than byte code, it's more the method Dbpro is using just isn't all that efficient. "

Quote: "Sorry, but this is a myth. The DBpro compiler, like the majority of compilers (if not all) are by reversable by nature. Code exported form Dbpro has a consistent pattern for each operation, making de-compilation very viable."

My mistake... I've learned something today, thanks for the clarification!


Dark Java Dude 64
Community Leader
14
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 15th Dec 2010 03:22
Inteeeristeeng.

Behold the new marble game coming soon: Marbsticle Course > > >http://forum.thegamecreators.com/?m=forum_view&t=178472&b=8&p=0 coming January to February 2011

Login to post a reply

Server time is: 2025-05-23 21:53:22
Your offset time is: 2025-05-23 21:53:22