Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Programming. | 3 guests
Acmlm's Board - I2 Archive - Programming - Purposely obfuscated C | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
Parasyte

Bullet Bill
Level: 35

Posts: 490/514
EXP: 267348
For next: 12588

Since: 05-25-04

Since last post: 104 days
Last activity: 32 days
Posted on 05-02-05 05:32 PM Link | Quote
In honor of The IOCCC I decided one day to write my own obfuscated C program. So I started with a lot of random junk and modified it until it did what I wanted, then I revised the code quite a few times (5 times, to be exact). And finally, I ended up with what I'm going to consider my first obfuscated C program, which I named, "red owl":

main(){int a=0x1612b9b1;putchar((a>>16)<<2);do putchar("red owl"[a&7]);while(a>>=3);}


If you can't guess what it does, go ahead and run it. It's a very simple idea, and just an interesting take on an old trick.
Feel free to write and post your own odd creations, as well!
MooglyGuy
Newcomer
Level: 4

Posts: 2/5
EXP: 152
For next: 127

Since: 05-01-05

Since last post: 81 days
Last activity: 80 days
Posted on 05-03-05 05:52 AM Link | Quote
It says "Hello world". I figured it out myself via manual bit shifting.
RT-55J

Ninji
Level: 23

Posts: 55/240
EXP: 65287
For next: 2436

Since: 12-29-04

Since last post: 9 hours
Last activity: 9 hours
Posted on 05-03-05 05:56 AM Link | Quote
I'm too lazy to compile that program.
-
My insignificant contribution to this thread:

I present to you, THE UNIVERSE'S SMALLEST AND MOST EFFICIENT COMPUTER PROGRAM.



Yep, that's it.
Parasyte

Bullet Bill
Level: 35

Posts: 491/514
EXP: 267348
For next: 12588

Since: 05-25-04

Since last post: 104 days
Last activity: 32 days
Posted on 05-03-05 09:23 AM Link | Quote
It'a been done before, RT-55J. See smr.c on IOCCC.
HyperLamer
<||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people

Sesshomaru
Tamaranian

Level: 118

Posts: 4329/8210
EXP: 18171887
For next: 211027

Since: 03-15-04
From: Canada, w00t!
LOL FAD

Since last post: 2 hours
Last activity: 2 hours
Posted on 05-04-05 07:04 AM Link | Quote
What's the point of this? Nobody can read your code anyway.
Parasyte

Bullet Bill
Level: 35

Posts: 496/514
EXP: 267348
For next: 12588

Since: 05-25-04

Since last post: 104 days
Last activity: 32 days
Posted on 05-04-05 11:49 AM Link | Quote
You should see the source for my disassembler control. It actually contains spaces! And comments!
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
Acmlm's Board - I2 Archive - Programming - Purposely obfuscated C | |


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.005 seconds.