From Edward Fuller · 1996-04-04 04:22 · #73545 in EMULATE
Without copying all of your message, I will say that units, ptr() and absolute aren't in every compiler. I don't think that you can specify
the location in memory that a C/C++ variable is to be located. I really haven't tried. The answers that I know are the following:
Pascal C C++
new malloc new
dispose free new
getmem malloc new
freemem free delete
var p : pointer int *pInt int *pInt
boolean none bool
pchar char *pCh char *pCh
Note that malloc and new place items requested on the heap. There are variants of malloc such as realloc, calloc that initialize the memory blocks to some value. The syntax is provided in the library manuals.
A good book is Herbert Schildt's book "Teach Yourself C++" and the book
"The C Programming Language" by Kernighan and Ritchie. Other good books are available. Too many to mention any more than two.
--- FLAME v1.1
* Origin: HAL-PC - (713)963-4100 (1:106/4100)