[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference yukon::christian_v7

Title:The CHRISTIAN Notesfile
Notice:Jesus reigns! - Intros: note 4; Praise: note 165
Moderator:ICTHUS::YUILLEON
Created:Tue Feb 16 1993
Last Modified:Fri May 02 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:962
Total number of notes:42902

642.0. "Extract this C program, compile, link, and run" by PAULKM::WEISS (Trade freedom for His security-GAIN both) Fri Dec 09 1994 09:06

#include <stdio.h>
main(t,_,a)
char *a;
{
return!0<t?t<3?main(-79,-13,a+main(-87,1-_,main(-86,0,a+1)+a)):
1,t<_?main(t+1,_,a):3,main(-94,-27+t,a)&&t==2?_<13?
main(2,_+1,"%s %d %d\n"):9:16:t<0?t<-72?main(_,t,
"@n'+,#'/*{}w+/w#cdnr/+,{}r/*de}+,/*{*+,/w{%+,/w#q#n+,/#{l+,/n{n+,/+#n+,/#\
;#q#n+,/+k#;*+,/'r :'d*'3,}{w+K w'K:'+}e#';dq#'l \
q#'+d'K#!/+k#;q#'r}eKK#}w'r}eKK{nl]'/#;#q#n'){)#}w'){){nl]'/+#n';d}rw' i;# \
){nl]!/n{n#'; r{#w'r nc{nl]'/#{l,+'K {rw' iK{;[{nl]'/w#q#n'wk nw' \
iwk{KK{nl]!/w{%'l##w#' i; :{nl]'/*{q#'ld;r'}{nlwb!/*de}'c \
;;{nl'-{}rw]'/+,}##'*}#nc,',#nw]'/+kd'+e}+;#'rdq#w! nr'/ ') }+}{rl#'{n' ')# \
}'+}##(!!/")
  :t<-50?_==*a?putchar(31[a]):main(-65,_,a+1):main((*a=='/')+t,_,a+1)
    :0<t?main(2,2,"%s"):*a=='/'||main(0,main(-61,*a,
"!ek;dc i@bK'(q)-[w]*%n+r3#l,{}:\nuwloca-O;m .vpbks,fxntdCeghiry"),a+1);
}
T.RTitleUserPersonal
Name
DateLines
642.1POWDML::FLANAGANI feel therefore I amFri Dec 09 1994 09:101
    Are you speaking in tongues again?
642.2COVERT::COVERTJohn R. CovertFri Dec 09 1994 09:244
%CC-E-NOTPOINTER, address valued expression not found
	at line 15

/john
642.3PAULKM::WEISSTrade freedom for His security-GAIN bothFri Dec 09 1994 09:5112
>%CC-E-NOTPOINTER, address valued expression not found
>	at line 15

Sorry, John.  I can't help you.  I didn't write that mind-bending piece of
code, so I have no idea how it's doing what it's doing.  It works for the C
compilers I've tried it with.

>    Are you speaking in tongues again?

Thanks, Patricia.  Made me laugh.  :-) :-)

Paul
642.4ICTHUS::YUILLEThou God seest meFri Dec 09 1994 10:168
I got the same as John.... :-(

But it was worth it for .1 .... ;-)

Thanks Patricia.


							Andrew
642.5ICTHUS::YUILLEThou God seest meFri Dec 09 1994 10:485
I'm told it compiles ok on unix, and when I saw the output, realised that
I have a copy which works on VMS, from last year.  Probably from this 
conference, somewhere...

								Andrew
642.6.C - worked for me on VMSICTHUS::YUILLEThou God seest meFri Dec 09 1994 10:4959
#include <stdio.h>
main(t,_,a)
char *a;
{
	return!

0<t?
t<3?

main(-79,-13,a+
main(-87,1-_,
main(-86, 0, a+1 )


+a)):

1,
t<_?
main(t+1, _, a )
:3,

main ( -94, -27+t, a )
&&t == 2 ?_
<13 ?

main ( 2, _+1, "%s %d %d\n" )

:9:16:
t<0?
t<-72?
main( _, t,
"@n'+,#'/*{}w+/w#cdnr/+,{}r/*de}+,/*{*+,/w{%+,/w#q#n+,/#{l,+,/n{n+,/+#n+,/#;\
#q#n+,/+k#;*+,/'r :'d*'3,}{w+K w'K:'+}e#';dq#'l q#'+d'K#!/+k#;\
q#'r}eKK#}w'r}eKK{nl]'/#;#q#n'){)#}w'){){nl]'/+#n';d}rw' i;# ){nl]!/n{n#'; \
r{#w'r nc{nl]'/#{l,+'K {rw' iK{;[{nl]'/w#q#\
\
n'wk nw' iwk{KK{nl]!/w{%'l##w#' i; :{nl]'/*{q#'ld;r'}{nlwb!/*de}'c ;;\
{nl'-{}rw]'/+,}##'*}#nc,',#nw]'/+kd'+e}+;\
#'rdq#w! nr'/ ') }+}{rl#'{n' ')# }'+}##(!!/")
:
t<-50?
_==*a ?
putchar(a[31]):

main(-65,_,a+1)
:
main((*a == '/') + t, _, a + 1 )
:

0<t?

main ( 2, 2 , "%s")
:*a=='/'||

main(0,

main(-61,*a, "!ek;dc i@bK'(q)-[w]*%n+r3#l,{}:\nuwloca-O;m .vpbks,fxntdCeghiry")

,a+1);}
642.7PAULKM::WEISSTrade freedom for His security-GAIN bothFri Dec 09 1994 11:214
The original has worked for me on both VAX/VMS and Alpha/VMS systems.  I
don't know why it doesn't work on other people's systems.

Paul
642.8CSLALL::HENDERSONLearning to leanFri Dec 09 1994 11:233

 so how does a bozo like me who doesn't know C run this thing?
642.9PAULKM::WEISSTrade freedom for His security-GAIN bothFri Dec 09 1994 11:2810
Extract one of the notes into a file, something.c.  Make sure you extract/
noheader.  Then just:

$ CC something
$ LINK something
$ RUN something

On VMS at least.

Paul
642.10No goODIXIE::HUNTFri Dec 09 1994 13:077
    I must have done something wrong.  VMS didn't recognize CC as a
    command.  Do I need to define it somehow?  I did the Link and got a ton
    of error messages.  It didn't run.
    
    Oh well...
    
    Bing
642.11FRETZ::HEISERGrace changes everythingFri Dec 09 1994 13:147
    You probably don't have the Vax C compiler installed.  try this: 
    
    $ dir sys$system:vaxc.exe
    
    Mike
    
    
642.12;-)ICTHUS::YUILLEThou God seest meFri Dec 09 1994 13:1831
�    I must have done something wrong.  VMS didn't recognize CC as a

! shock horror ! Are you sure you spelt it right?  Both of the 'C's with 
the same key?

What do you *do* all day if you can't do a 'C' compile?  
	- Rhetorical, you don't really need to tell me! ;-)

When I wake up in the morning I can't do anything until I've done a bunch 
of #includes - 
#include prayer&Biblereading
#include clothes
#include breakfast

Only then am I ready to switch over to 
main() 
{
and get into the car to go to work.


but as for the rest, where it comes to and where it goes, I don't know.
I thought it was there, probably on day 5, but maybe it actually waited 
until the second week...

sorry

						Andrew

excuse me, but:

}
642.13Am I spending a lot of time for little return?ODIXIE::HUNTFri Dec 09 1994 13:3719
    OK, I found a system which has the executable installed.  When I did
    the "link som" I got the following:
    
    %LINK-W-NUDFSYMS, 2 undefined symbols:
    %LINK-I-UDFSYM,         C$MAIN_ARGS 
    %LINK-I-UDFSYM,         FPUTC 
    %LINK-W-USEUNDEF, undefined symbol C$MAIN_ARGS referenced
            in psect $CODE offset %X00000006
            in module SOM file SHR63:[HUNT]SOM.OBJ;1
    %LINK-W-USEUNDEF, undefined symbol FPUTC referenced
            in psect $CODE offset %X00000106
            in module SOM file SHR63:[HUNT]SOM.OBJ;1
     
    [my file name is som.c]
    Looks like Greek to me.
    
    Is this worth pursuing any further?
    
    Bing
642.14I used DEC C, not VAX CNOVA::MAATTALisa Ann Smith, Oracle Rdb EngineeringFri Dec 09 1994 14:244
    I got the original program to work with the DEC C compiler on Alpha, but 
    not the VAX C compiler.  
    
    It's actually kind of cute!
642.15ICTHUS::YUILLEThou God seest meSat Dec 10 1994 07:2911
Bing,

I hope it doesn't spoil the fun for you, but if you like you can try to 
run it by :

$ Run FORTY2::user89:[yuille.public]seasonal

 - it takes out the fun of compiling and linking, but you can do that to 
   other programs, when there isn't such a rush for Christmas ... ;-)

							Andrew