home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!gatech!rpi!batcomputer!munnari.oz.au!metro!extro.ucc.su.OZ.AU!maxtal
- From: maxtal@extro.ucc.su.OZ.AU (John MAX Skaller)
- Subject: Re: Dumb questions about Borland C++
- Message-ID: <1992Aug13.152405.16170@ucc.su.OZ.AU>
- Sender: news@ucc.su.OZ.AU
- Nntp-Posting-Host: extro.ucc.su.oz.au
- Organization: MAXTAL P/L C/- University Computing Centre, Sydney
- References: <q!3m8wf.sjk@netcom.com>
- Date: Thu, 13 Aug 1992 15:24:05 GMT
- Lines: 51
-
- In article <q!3m8wf.sjk@netcom.com> sjk@netcom.com (Shel Kaphan) writes:
- >I've been trying to port some programs written for a Unix C compiler
- >to Borland C/C++, and have a few questions:
- >
- >- How do you add an assembly language file to a project in the Windows
- >IDE ("Integrated Development Environment")? I tried to do the obvious
- >thing, and it claims to have successfully "compiled" the assembly
- >files, but it turns out it didn't do anything.
-
- Just add the file to the project. Must have .ASM extension.
- Never tried it but it should work. Otherwise you can configure
- the project to specifically invole the assembler.
- >
- >- Is there a way to view the 386 registers in the debugger? I mean
- >those registers not already present in the 286 and 8086.
-
- No because they are not used.
- >
- >- When you put it into "K&R" mode, is there some special magic trick
- >you have to do to make it not choke on its own header files? (Like
- >math.h and other obvious ones...) I ended up using "protoize" from
- >gnu C to convert the programs to use ANSI function prototypes,
- >and then feeding it through the Borland C++ compiler...
-
- I have noticed that the preprocessor macro __STDC__
- is incorrectly tested with !__STDC__ when in fact it is either
- defined or not defined, rather than being defined as 1 or 0.
- You might look at that.
- >
- >- Isn't there some way to tell it that you want "int" and "unsigned int"
- >to be 32 bits? (just wishful thinking).
-
- #define long int :-)
-
- >
- >- Is there no memory model on the PC in which the stack can occupy
- >more than 64K bytes? (more wishful thinking, I know ... don't flame me.)
- >Don't ask why I care.
-
- No. Its only a 16 bit machine. And the 386 still
- runs 16 bit operating systems.
- >
- >I'd ask them directly, but after most of an hour waiting for them to
- >answer their technical service phone number, I figured this would be faster.
-
-
- --
- ;----------------------------------------------------------------------
- JOHN (MAX) SKALLER, maxtal@extro.ucc.su.oz.au
- Maxtal Pty Ltd, 6 MacKay St ASHFIELD, NSW 2131, AUSTRALIA
- ;--------------- SCIENTIFIC AND ENGINEERING SOFTWARE ------------------
-