Getting the code after the preprocessor in MinGW

This is a discussion on Getting the code after the preprocessor in MinGW within the C Programming forums, part of the General Programming Boards category; I'm using MinGW (in Code::Blocks) and am having a hard time finding the perameter to get it to output the ...

  1. #1
    Registered User guesst's Avatar
    Join Date
    Feb 2008
    Location
    Lehi, UT
    Posts
    179

    Getting the code after the preprocessor in MinGW

    I'm using MinGW (in Code::Blocks) and am having a hard time finding the perameter to get it to output the code after the preprocessor replaces all the #defines. Will it also keep the comments in so I can find where my code starts and put all the #includes back?

    My ultimate is to unravel the knot of a program obfuscated for the purposes of compression. Deobfuscate it as it were. Actually it occurs to me that there must be something like this out there. Any clues?
    Type-ins are back! Visit Cymon's Games at http://www.cymonsgames.com for a new game every week!

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,755
    -E or -P IIRC
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help compiling example code (MinGW and DirectX9)
    By scwizard in forum Game Programming
    Replies: 10
    Last Post: 07-25-2008, 11:43 AM
  2. Obfuscated Code Contest: The Results
    By Stack Overflow in forum Contests Board
    Replies: 29
    Last Post: 02-18-2005, 05:39 PM
  3. Obfuscated Code Contest
    By Stack Overflow in forum Contests Board
    Replies: 51
    Last Post: 01-21-2005, 04:17 PM
  4. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 06:06 PM
  5. Replies: 0
    Last Post: 02-21-2002, 06:05 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21