Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Simplest Program

Name: Anonymous 2010-10-21 17:38

What is the most universally simplest program that compiles?

Name: Anonymous 2010-10-21 17:42

int main;

Name: >>2 2010-10-21 17:44

Or actually just main; if you can coax your compiler into K&R mode.

Name: Anonymous 2010-10-21 17:53

What's the most universally complex program that compiles?

Name: 2010-10-21 17:53

Name: Anonymous 2010-10-21 18:02

LLVM

Name: Anonymous 2010-10-21 18:03

>>4
The vanilla PHP interpreter.

Name: Anonymous 2010-10-21 18:07


section .text
        global _start

_start:
        mov    eax, 1
        mov    ebx, 0
        int    0x80

Name: Anonymous 2010-10-22 2:21

>>8
U MENA

.text 
        .global _start

_start: 
        movl    $1, %eax
        movl    $0, %ebx
        int     $0x80

Name: Anonymous 2010-10-22 3:17

>>9
U MENA .globl

also, fuck AT&T syntax, long live Intel syntax

Name: Anonymous 2010-10-22 3:53

$ echo >empty
$ cc -c empty

Name: Anonymous 2010-10-22 4:48

>>11
where is the newline

Name: Anonymous 2010-10-22 5:58

>>12
You tell me.

Name: Anonymous 2010-10-22 5:59

>>13
>>12-san asked first

Name: Anonymous 2010-10-22 9:22

>>9

Please, for the sake of humankind, use Intel syntax.

Name: Anonymous 2010-10-22 17:46

>>15
YOU HAVE NEVER HEARD OF GCC INLINE-ASSEMBLY, HAVE YOU ?

Name: Anonymous 2010-10-24 12:07

<code>ret</code>

Name: Anonymous 2010-10-24 12:08

>>17
Fail.

ret

Name: Anonymous 2010-10-24 13:05

>>18
LOL EPIC FAIL BOXY FAIL EPIC

Name: Anonymous 2010-10-24 14:10

>>16
Actually I have but have you heard of .intel_syntax noprefix?

Name: Anonymous 2010-10-24 14:20

This thread has been closed and replaced with the following thread:

Subject:
Using the .intel_syntax directive in GCC inline assembly.
Name:
Email:


It doesn't work.

Name: Anonymous 2010-12-09 10:58

Name: Anonymous 2011-02-03 4:32

Name: Anonymous 2013-01-19 23:16

/prog/ will be spammed continuously until further notice. we apologize for any inconvenience this may cause.

Don't change these.
Name: Email:
Entire Thread Thread List