Welcome, Guest. Please login or register.

Author Topic: I don't think I can learn C....  (Read 10414 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline xeron

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 2533
    • Show all replies
    • http://www.petergordon.org.uk
Re: I don't think I can learn C....
« on: April 02, 2003, 11:13:24 AM »
Ahh yes. Reminds me of the obfuscated C competitions. I've seen some C sources like that that were shaped like a train or a whale, which is fun.

Nice example there; interesting use of recursion and the ? operator. I also didn't realise '_' was a legal variable name.

Of course, some languages like Brainf**k, Perl and my own "Bonk" are pretty obfuscated as a matter of course  :-D
Playstation Network ID: xeron6
 

Offline xeron

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 2533
    • Show all replies
    • http://www.petergordon.org.uk
Re: I don't think I can learn C....
« Reply #1 on: April 02, 2003, 11:19:28 AM »
Is that what it does? thats really cool  :-D

Edit: Just compiled it, and yes it does. Thats very clever, i'm impressed!
Playstation Network ID: xeron6
 

Offline xeron

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 2533
    • Show all replies
    • http://www.petergordon.org.uk
Re: I don't think I can learn C....
« Reply #2 on: April 02, 2003, 12:44:51 PM »
Compiled with GCC for the Win32 console the exe is 23,468 bytes.
Playstation Network ID: xeron6
 

Offline xeron

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 2533
    • Show all replies
    • http://www.petergordon.org.uk
Re: I don't think I can learn C....
« Reply #3 on: April 02, 2003, 07:30:43 PM »
I get the same size with SAS/C, however if I size optimize it and turn off some other things I can get it down to 5k, but it then gurus 8000 0004 after running :( Oh well, 6k's still not bad ;)
Playstation Network ID: xeron6