home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / cplus / 12318 < prev    next >
Encoding:
Text File  |  1992-08-13  |  2.5 KB  |  64 lines

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