🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: demon.ip.developers
Article #1376

Re: Building KA9Q...

#1376
From: walter briscoe
Date: Sun, 26 Nov 1995 00:00
45 lines
2292 bytes
In article <817324091snz@illuin.demon.co.uk>
           richard@illuin.demon.co.uk "Richard Letts" writes:

[snip]

> I've been looking at producing a 32-bit version using the DJGPP compiler.[*]
> however I don't understand what the myriad of command-line switches mean
> 
> CFLAGS= -w -w-par -a -d -f- -A- -G- -O -Z -DMSDOS -Ff=1024
>
>  -O == optimize ?
>  -D == define MSDOS
>  -Ff == far handling [not needed]
> 
> I suspect some of the others modify alignment of data within structs, would
> anyone like to provide a decode of the switches.
> 
> the flag /C is passed to lib, I assume this means create a library.

One of the things I find horrible about PD software is the lack of
documentation. A particular example of this is the failure to document
switches in makefiles.

I infer that you do not understand the switches used in a makefile which
expects a Borland compiler and which you want to port to DJGPP. I got
the following from Borland C++ 3.1 User's Guide, Chapter 5: The
command-line compiler.
-w        Display warnings on
-w-par    Suppress -par warning messages: Parameter <name> is never used
-a        Align word
-d        Merge duplicate string on
-f-       Don't do floating point
-A-       Use Borland C++ keywords
-G-       Select code for speed
-O        Removes jumps to jumps, unreachable code, and unnecessary
          jumps
-Z        Enable register load suppression optimisation
-DMSDOS   Define MSDOS to the null string
-Ff=1024  Create far variables automatically; sets the threshold to 1024

In Borland C++ 3.1 Tools and Utilities Guide, Chapter 3: The tlib /C
option is used "to add a module to a library that includes a symbol
differing only in case from one already in the library"
----------
walter briscoe
Technical Details
Message-ID: <817398145snz@wbriscoe.demon.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <1995Nov21.100102.1@gst-soft.demon.co.uk> <817324091snz@illuin.demon.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10bb05,94505efb0ecb770c
X-Google-Attributes: gid10bb05,public
From: walter briscoe <walter@wbriscoe.demon.co.uk>
Subject: Re: Building KA9Q...
Date: 1995/11/26
Message-ID: <817398145snz@wbriscoe.demon.co.uk>
X-Deja-AN: 120164054
x-nntp-posting-host: wbriscoe.demon.co.uk
references: <1995Nov21.100102.1@gst-soft.demon.co.uk> <817324091snz@illuin.demon.co.uk>
reply-to: walter@wbriscoe.demon.co.uk
newsgroups: demon.ip.developers