TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Tony Belding
from: Rob Landley
date: 1995-05-18 00:37:00
subject: programming tools

>  RL> 2) The documentation it does have isn't exactly unified.  (Everything's
>  RL> there, but you basically have to read all of it to find what you want,
>  RL> and what order you read it in doesn't really matter.)
> 
> I'm used to that.  Compilers with good docs are hard to find.

I got so sick of the docs I wrote up my own, but they're not ready to
release yet.  I was busy working on "bake" (That's a make
replacement which is a heck of a lot easier to use.  The following is a
sample bake file:

filename.exe
file1.cc
file2.cc
file3.cc
file4.cc
curses.lib

Then you run bake and it figures out the dependencies on its own, and
recompiles what needs it with the appropriate command line arguments to GCC
to make whatever you wanted.  (It'll make an exe, lib, dll, OS/2 program,
EMX program, etc.  Just give it a different extension for the
"target" file, on the first line, and it'll figure out what to
do.  Lot of programming, but easy to use when finished.)

> I've seen GCC on the Amiga, and it bugged me with all the complex
> "Unix-isms" required to set it up, and the large dynamic
library required to
> run the executables (because the library contained the equivent of Unix
> functions, I guess).

That's why I made bake.  The EMX port of GCC is capable of making three
types of executables:

1) 32 bit OS/2 native executables, which run on their own with no .dll's
required (unless you access your own).  Give bake the target extension
".exe" and it'll make that.
2) Full unix emulation programs, which compile ".o" object
modules and link with ".a" libraries, and require
"emx.dll" to run under OS/2 and "emx.exe" to run under
dos.  They're big, and slow, and the ".emx" extension from bake. 
(The actual file created will end in .exe, the .emx extension just tells
bake it's making a different KIND of exe.)
3) Hybrid unix/OS2 executables.  These are faster and smaller than the
".emx" kind, but still emulate all the wierd unixisms like
signals and pipes as files and "/dev/null" for "nul:". 
Give your target file the extension ".em2" with bake, and it'll
compile one of these.

Sorry to keep going on about bake, I've been working at it for three days
straight and just finished it about an hour ago.  I'll stop now.

Rob
 
--- Xblat
* Origin: The Conversation Pit, Marlton NJ 609-985-7553 OS/2 V34 (1:266/30)
SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809
@PATH: 266/30 40 100 505 3615/50 396/1 270/101 105/103 42 712/515 711/808 809
@PATH: 711/934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.