Slimelite BBS

Basic Help With C++

Back to EMULATE

From Frank Adam · 1996-03-30 21:32 · #73516 in EMULATE

In reply to Basic Help With C++ by David Matthews

 G'Day David,
 
-=> Quoting David Matthews to All <=-
 DM> Can someone please help me with the following:

 DM> o  What essentially is the difference between Tiny, Small, Medium
 DM> Compact, Large, and Huge code?  I have been using the Huge code
Don't use huge, unless you have to.For optimum performance from your 
programs you should make an (un?)educated guess and make it as small as 
possible.
How big is the program code ? 
How much data will it use ?
I think the online help in turbo2 has some explanation on memory models.
It's all to do with "data space" and "code space".

 DM> o  What is the story with the instruction set.  At the moment it is
 DM> set for 8088/8086 (it has options for 80186 and 80286 as well).
 DM> Should I leave it where it is, or go higher?
It tells the compiler to use 286 instructions in the exe, where it can.
I always left it on 8086, but there may be some speed improvement if you go 
286. The drawback is that your program will probably not run on anything 
less than a 286AT.

 DM> compile to WAR112.EXE but would crash ALL the time.  I called the
 DM> same CPP file WAR.CPP and compiled and it ran perfectly.  Then I
 DM> converted the working EXE (WAR.EXE) to WAR112.EXE and again it
 DM> crashed! ;-( It is the very same EXE with a different name, How can
 DM> it crash? 
This i can't figure out, maybe the program calls on itself somewhere ? 
Did you search through the source for any reference to "war.exe" ? 
Some programs can write to their own exe, if no checks were made or badly 
written, the results of not finding the program are unpredictable.

 DM> I have since found out that I probably shouldn't have jumped in with
 DM> C++ but rather Visula Basic or some such.  But I'm here now and I do
 DM> believe I'm getting there.
I reckon you should have a bit of understanding of plain C, before going C++
but this is my own experiance only. 
Visual Basic ? No, i'm doing some programming right now in VB, only for 
Windows and the differences are quite annoying, basic is a very inflexible 
language once you get used to C.I used to program in basic, and found it 
not much help in C, Mind you in those days there were no classes in basic.                           

 DM> Does anyone know of any C++ courses in the Sydney, NSW, area that may
 DM> be of benefit to me.  I've made heaps of phone calls, but no-one can
 DM> help me there either.
Do you have TAFE up there ? In Melbourne they run(at least used to) C/C++ 
courses.


  L8r Frank (fadam@ozemail.com.au).
  
___ Blue Wave/DOS v2.21

--- Maximus 3.01
 * Origin: The Software Parlour (3:635/544)