[comp.sys.apple2] Hyper C and comp.sources.apple2, stand-along code, and whatever

daye@jacobs.cs.orst.edu (Garion) (12/31/90)

Ok....I'm not _new_ to Hyper C, but I don't know exactly what it encompasses.
I have Aztec C (apprentice), but it is DOS 3.3, and I don't care for the
dos 3.3 environment.  SO I want to compile the files from comp.sources.apple2
(more.c, fgrep.c, upaaf.c) with hyperc.  I have the scanf patch (I just
put it with the header files and include it if I need it, since the other
method of patching it to libc eludes me...), but I can't get upaaf.c (or
anything else...except the echo.c, which doesn't do squat!) to compile.  
I'm not a C expert, but with some tooling around I got upaaf to compile on
Aztec with almost no trouble.  Anyone know what to do?

Also, can I just take the header files from Aztec and use them with Hyper C?
Some of the files from comp.sources require the headers from Aztec.


Second major question:  Stand alone code.  I have been told that it may be
possible to create stand-alone code with Hyper C.  How?  Does it take a lot
of know-how with Assembly or C, or what?

Also, could someone point me in the direction of acquiring the Hyper C manual?
I don't think sending 35$ to a belly-up company will do me any good...

Thanks....

---
'Life in the so called space age'
--
|  Internet-----           | 'I'll have to teach you a few of my spells.  I    |
|  daye@jacobs.cs.orst.edu |  have one..a fireball..let's see, how did that    |
|  daye@nyssa.cs.orst.edu  |  go..?' - If you don't know, you don't need to    |
         My opinions are my own.  I have opinions, therefore I am....

ericmcg@pnet91.cts.com (Eric Mcgillicuddy) (01/01/91)

HyperC is standard K&R, if the source mentioned is ANSI it will not compile.
Since you mention that Aztec C compiled it I would guess that this is not the
problem. I will see about the source you mention, I suspect that more.c may be
shell dependent and may not work with the HyperC shell. There likely a few
system dependencies included.

I wrote scanf and do not appreciate it being called 'a patch'. :)
Adding anything to the library is a bit of a problem without the docs. Be sure
that you do not link the file before adding it to the library. Clone the 'cc'
file, but exclude the last to lines, this will then create unlinked .o files
that can be added to the 'libc' file. Try this command:

>lib /csys/libs/libc -rv /csys/scanf.o

That should add the scanf.o file to the end of the library and tell you what
it is doing while it is doing it (-r is replace and v is verbose). It takes
awhile.  Depending on the prefix that you have set and where the libc and
scanf.o files are located, you may not need full pathnames.

Some of the header files might work, but there should be quivalent HyperC ones
available. All I can say is try it.

To make stand alone programs you must include the opsys file as the first
system file on the floppy and call your program 'shell'. It can be either
native (created with ccn) 6502 code for speed or interpreted (made with cc)
p-code for size. Regardless the interpreter and run time libraries are in the
opsys file and it must be present between $800 and $2000 for any HyperC
generated code to run. 

Send me mail if you want more information on docs, or any other problems that
you may have.

UUCP: bkj386!pnet91!ericmcg
INET: ericmcg@pnet91.cts.com