mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-06 05:12:26 +00:00
Merge branch 'master' of ssh://github.com/vishaps/voc
This commit is contained in:
commit
f1af9e01e9
1 changed files with 14 additions and 14 deletions
|
|
@ -52,15 +52,15 @@ There are three strategies that clients may wish to use:
|
||||||
we fix Oberon type sizes across platforms, and introduce a new LONG64 type
|
we fix Oberon type sizes across platforms, and introduce a new LONG64 type
|
||||||
as follows:
|
as follows:
|
||||||
|
|
||||||
| Oberon type | Size |
|
| Oberon type | Size |
|
||||||
| ----------- | ---------------- |
|
| ----------- | ---------------- |
|
||||||
| BOOLEAN | 8 bits |
|
| BOOLEAN | 8 bits |
|
||||||
| BYTE | 8 bits unsigned |
|
| BYTE | 8 bits unsigned |
|
||||||
| SHORTINT | 8 bits signed |
|
| SHORTINT | 8 bits signed |
|
||||||
| INTEGER | 16 bits signed |
|
| INTEGER | 16 bits signed |
|
||||||
| LONGINT | 32 bits signed |
|
| LONGINT | 32 bits signed |
|
||||||
| SET | 32 flag bits |
|
| SET | 32 flag bits |
|
||||||
| LONG64 | 64 bits signed |
|
| LONG64 | 64 bits signed |
|
||||||
|
|
||||||
This gives a set of sizes that are available on all platforms (even SDCC
|
This gives a set of sizes that are available on all platforms (even SDCC
|
||||||
supports 64 bit ints), and which have fixed characteristics (e.g. the size of
|
supports 64 bit ints), and which have fixed characteristics (e.g. the size of
|
||||||
|
|
@ -72,11 +72,11 @@ There are three strategies that clients may wish to use:
|
||||||
efficient size available. On x86 we stick with the sizes as above, but for
|
efficient size available. On x86 we stick with the sizes as above, but for
|
||||||
x64 we make changes to INTEGER, LONGINT and SET as follows:
|
x64 we make changes to INTEGER, LONGINT and SET as follows:
|
||||||
|
|
||||||
| Oberon type | Size on x64 |
|
| Oberon type | Size on x64 |
|
||||||
| ----------- | ---------------- |
|
| ----------- | ---------------- |
|
||||||
| INTEGER | 32 bits signed |
|
| INTEGER | 32 bits signed |
|
||||||
| LONGINT | 64 bits signed |
|
| LONGINT | 64 bits signed |
|
||||||
| SET | 64 flag bits |
|
| SET | 64 flag bits |
|
||||||
|
|
||||||
3) Supporting system code, especially memory management.
|
3) Supporting system code, especially memory management.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue