home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!lax.pe-nelson.com!lax!twbrown
- From: twbrown@PE-Nelson.COM (Tom W. Brown)
- Newsgroups: comp.lang.c++
- Subject: Re: Dumb questions about Borland C++
- Message-ID: <593@lax.lax.pe-nelson.com>
- Date: 13 Aug 92 22:57:54 GMT
- References: <q!3m8wf.sjk@netcom.com> <1992Aug13.152405.16170@ucc.su.OZ.AU>
- Sender: news@lax.pe-nelson.com
- Organization: PE-Nelson
- Lines: 61
-
- In article <1992Aug13.152405.16170@ucc.su.OZ.AU>, maxtal@extro.ucc.su.OZ.AU (John MAX Skaller) writes:
- |> 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.
-
- No, the Windows hosted IDE (BCW.EXE) is still brain-dead in version 3.1 and
- doesn't have the Transfer Options capability of the DOS hosted version. Only
- .C (.CPP) and .RC files can be compiled. You can, however, put the .OBJ's
- in the project as long as you assemble them separately.
-
-
- |> >
- |> >- 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.
-
- Yes you can, sort of... bring up the Register window (View|Registers) or
- activate the register subwindow of the CPU view (View|CPU) and press CTRL-R to
- toggle between 32 and 16 bit views of the registers. In 32 bit mode the
- additional segment registers FS and GS are displayed. Note, however, that
- you do not get a view of any of the real funky control registers like the
- GDTR, LDTR, etc.
-
-
- |> >
- |> >- 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 :-)
-
- :-O
- you mean, #define int long, right ;-)
-
- |>
- |> >
- |> >- 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.
-
- Wait for NT and then wait for Borland to release their compiler support for
- it (better get a deck of cards or something while you're waiting :-)
-
-
- ----------------------------------------------------------------------------
- Tom Brown | "Strange women, laying in ponds, distributing
- PE Nelson Systems | swords is no basis for a system of government."
- twbrown@pe-nelson.com | Monty Python and the Holy Grail
- ----------------------------------------------------------------------------
-