Subject: Re: g++ HELLO WORLd
To: None <netbsd-users@NetBSD.org>
From: felix zaslavskiy <felix@students.poly.edu>
List: netbsd-users
Date: 07/20/2003 11:30:44
On Sun, 2003-07-20 at 04:42, Maurizio Caloro wrote:
> dear netbsd group,,
> 
> when i write a simple c prog like HELLO World
> it works fine on my little netbsd :-), i have beware that the
> code its exactly like $msw$ but when i compil with g++ or gcc
> it works only on my netbsd, and when i make a copy to $msw$ appear
> a runtime error, its possible that i can compille for both machines ?
> 1 = netbsd, 2 = $msw$
> 
> what i can do do porting from unix to mswindows
> its possible that i have forrgod a syntax ?
> 
> $msw$ = ms windows
> 
> #define _ (int) putchar
>  main() { int c = 0110
>  ;_(c);c+=29;_(c);c+=7
>   ;_(c);_(c);c+=3;_(c)
>   ;c=0x20;_(c);c=0127
>    ;_(c);c+=24;_(c);
>     c+=0x3;_(c);c-=
>      6;_(c);c-=010;
>       _(c);c=0x21;
>        _(c);_(10)
>         ;c+=66;}

Is this for the obfuscated C contest ? 


> 
> --------------------------------------------------------------
> ------> > >                Maurizio Caloro
> ------> > >                <mauric@gmx.ch>
> ---------------------------------------------------------------
>