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

Pages: 1-

cpp.add()

Name: Anonymous 2007-04-19 23:44 ID:G694GPak

Don't complain, it DOES return something; just because your compiler is dumb isn't my fault.
   
int main(int argc, char *argv[]) {
    int bleh;
   
    if ((bleh = (argc & 1))) {
        fprintf(stdout, "%s\n", argv[--bleh]);
    }
   
    __asm { xor eax, eax; }
}

Name: Anonymous 2007-04-20 0:14 ID:yYSeuXA2

whats more annoying is that it checks __emit's validity at times, for example if i place a E9 ( relative call ), it will see if its a valid code, there is no easy way for me to declare some local code and call into it, that kinda sucks and might as well use masm(ml) and then link your asm code to your c code.

Name: Anonymous 2007-04-20 0:23 ID:y7pF4Suh

lol virgin

Name: Anonymous 2007-04-20 1:07 ID:uQMTh/0y

>>2
It isn't easy being a compiler. Maybe I should just make it 'return 0'.

Name: Anonymous 2007-04-20 7:25 ID:HrNGCkmU

One word, but is it Touring-complete? Thread over.

Name: Anonymous 2007-04-20 7:27 ID:h016Wd+c

>>1
to sum it up

write(1,argv[argc&1-1],strlen(argv[argc&1-1]));

Name: Anonymous 2007-04-20 7:28 ID:h016Wd+c

oh yeah, i forgot about the eax xor'ing

Name: Anonymous 2007-04-20 9:14 ID:+aI4QpCd

>>5
Ducks are Touring complete. They move across a (theoretically) infinite river in either direction. They have memory. In each step, they can catch fish, take a dump, or quack.

Name: Anonymous 2007-04-20 9:16 ID:cLJYUjaH

sub eax, eax is better

Name: Anonymous 2007-04-20 9:17 ID:h016Wd+c

>>9
xor is faster

Name: Anonymous 2007-04-20 9:23 ID:cLJYUjaH

>>10

This isn't the early 90s, processor internals have changed since the 386 you know.

Name: Anonymous 2007-04-20 9:39 ID:v3GoKhK0

Got a PPC port?

Name: Anonymous 2007-04-20 18:31 ID:PlSMnVLG

>>11
xor is still faster

Name: Anonymous 2007-04-20 19:28 ID:TE4TTtwc

>>13

Proof or STFU

Name: Anonymous 2007-04-20 19:41 ID:s1kaNKTU

>>14
Xor is still and has always been faster now shut the fuck up.

Name: Anonymous 2007-04-20 20:01 ID:ZRgysEYS

XOR is faster because it only requires 6 transistors per bit, and no input from adjacent bits (carry in).  SUB requires 3 inputs and multiple gates. 

Name: Anonymous 2007-04-20 20:01 ID:VMOx2W8V

>>6
Nothing is written unless argc is an odd number.

Name: Anonymous 2007-04-20 21:48 ID:v3GoKhK0

>>17
That's not a bug, that's a feature.

Name: Anonymous 2007-04-21 6:29 ID:v318xk17

>>17
you have to pay for the premium version (with many new features!!) to have it work with even numbers

Name: Anonymous 2009-03-06 11:50

Direction They have memory In each step   they can troll   flame or quack?

Name: Anonymous 2009-03-06 14:45

more elegantly in Blub?

Name: Anonymous 2009-03-06 14:48

Framework Get out now.

Name: Anonymous 2010-12-17 1:33

Xarn is a bad boyfriend

Name: Anonymous 2011-02-04 17:04

Name: Sgt.Kabu凑锁kiman�玵 2012-05-29 0:31

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

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