Author Topic: Disassembly? Well, sort of . . .  (Read 487 times)

0 Members and 1 Guest are viewing this topic.

Offline DrewPee

  • I Toast Therefore I am
  • Pentium
  • *****
  • Posts: 562
  • Karma: 25
  • Eat Cheese - It's good for you!
    • View Profile
    • Retro Computer Museum
Disassembly? Well, sort of . . .
« on: December 31, 2008 »


Hello again guys - not sure if this one has popped up before.
If you have created an .exe from freebasic and then erm mislaid the source - is it possible to get it back to basic?
This is not to hack anybody else's code - I seem to have deleted something I have been working on for quite a while.

DrewPee
DrewPee
aka Falcon of The Lost Boyz (Amiga)
Ex-Amiga Coder and Graphic Designer
Administrator of > www.retrocomputermuseum.co.uk

Offline rdc

  • Pentium
  • *****
  • Posts: 1480
  • Karma: 138
    • View Profile
    • Clark Productions
Re: Disassembly? Well, sort of . . .
« Reply #1 on: December 31, 2008 »
If there is a disassembler for GCC then it should work on FreeBasic. FB uses GCC to compile the programs.

Offline DrewPee

  • I Toast Therefore I am
  • Pentium
  • *****
  • Posts: 562
  • Karma: 25
  • Eat Cheese - It's good for you!
    • View Profile
    • Retro Computer Museum
Re: Disassembly? Well, sort of . . .
« Reply #2 on: December 31, 2008 »
Thanks RDC and also to Bikerboy!
I will have a look at these disassembly programs.  ;D

DrewPee
DrewPee
aka Falcon of The Lost Boyz (Amiga)
Ex-Amiga Coder and Graphic Designer
Administrator of > www.retrocomputermuseum.co.uk

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 16787
  • Karma: 439
  • evil/good
    • View Profile
    • My Homepage
Re: Disassembly? Well, sort of . . .
« Reply #3 on: January 01, 2009 »
That wouldn't convert it back to Freebasic though would it Rick?

(honestly I don't know).

Most of these decompilers revert if back to assembly language, even if it reverts back to freebasic I would bet my house that what you end up with is not what you started with.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline rdc

  • Pentium
  • *****
  • Posts: 1480
  • Karma: 138
    • View Profile
    • Clark Productions
Re: Disassembly? Well, sort of . . .
« Reply #4 on: January 01, 2009 »
You're right. It wouldn't convert it back to FB source. FB actually outputs assembler that is compiled by GCC so the most you could recover is the assembler source.

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5098
  • Karma: 380
    • View Profile
Re: Disassembly? Well, sort of . . .
« Reply #5 on: January 01, 2009 »
There are 'decompilers' around, for example DCC and Boomerang.  But despite decades of research they're still barely usable.
Unfotunately Drew, you're pretty stuffed.

Jim
Challenge Trophies Won:

Offline hellfire

  • Sponsor
  • Pentium
  • *******
  • Posts: 960
  • Karma: 394
    • View Profile
    • my stuff
Re: Disassembly? Well, sort of . . .
« Reply #6 on: January 01, 2009 »
i can tell by experience that rewriting source-code from scratch usually makes it significantly better.
Challenge Trophies Won:

Offline DrewPee

  • I Toast Therefore I am
  • Pentium
  • *****
  • Posts: 562
  • Karma: 25
  • Eat Cheese - It's good for you!
    • View Profile
    • Retro Computer Museum
Re: Disassembly? Well, sort of . . .
« Reply #7 on: January 04, 2009 »
Thanks for all of the input guys! I think hellfire has got it right though . . . i need to start again from scratch! Not a problem.

:)

the program do their job very well - it converts the .exe back to assembly language - cool cool shit! but . . . I wanted it back to freebasic.

As always though you guys are all here . . . very much appreciated!

Andy (Drew)
DrewPee
aka Falcon of The Lost Boyz (Amiga)
Ex-Amiga Coder and Graphic Designer
Administrator of > www.retrocomputermuseum.co.uk