According to Orlando Llanes:
Cool :) Where can I Get info on the Machine specifics of Alphas? I
want to know the low level details like how graphics are displayed, if sound is available, the architecture of the memory (for example: PC has segments, offsets, etc). [...]
See the source (and its documentation) of the Linux kernel for the Alpha.
BTW, are there plans to port DJGPP and/or GPC to the Mac platform? Are there any free tools you or anybody know of that compile on it?
AFAIK, the GNU project does not support the Mac platform because Apple did not give them the necessary information.
TYPE DWord = Cardinal(32); Word = Cardinal(16); Byte = Cardinal(8);
So what said Byte previously, I changed to Word, and what was Word previously I changed to DWord. I'll try it again, mayhaps I did something wrong :}
`Byte' always has the smallest size direcly accessible to the processor anyway - usually eight bits ...
Does Packed align on a Dword boundary? Or does it lump all the fields
together to ensure that they are continuous?
The second. Without `packed', you get the first.
I ask because from what I remmeber about Pascal, it's to keep them continuous (the only time in Borin... errr... Standard Pascal that I've seen Packed is for a character array).
It does not stop there: Try the following with BP and with GPC:
Var foo: packed array [ 1..64 ] of Boolean;
writeln ( SizeOf ( foo ) );
:-)
Got me on that one :( Although I am very familiar with the types,
type definitions, and I haven't seen anything really about packing the records like in Pascal. I could be wrong tho, if there is something, it's one of those deep dark secrets of C :P
There are bit fields:
struct foo { int i : 4; unsigned j : 2; int k : 1; unsigned l: 1; }
is the same as the following in Pascal
foo = packed record i: -8..7; j: 0..3; k, l: 0..1; end (* foo *);
and both fit in a single byte.
Have fun,
Peter
Dipl.-Phys. Peter Gerwinski, Essen, Germany, free physicist and programmer peter.gerwinski@uni-essen.de - http://home.pages.de/~peter.gerwinski/ [971005] maintainer GNU Pascal [971001] - http://home.pages.de/~gnu-pascal/ [971005]