diff options
author | Andrew Cagney <cagney@redhat.com> | 1997-09-03 07:34:59 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1997-09-03 07:34:59 +0000 |
commit | b83adf4eebba1713cc928647721382b2e2e2a017 (patch) | |
tree | 3220c62f9407e179ec193b451452cb40f62fb605 /sim/README-HACKING | |
parent | ee36741e6385ff705602158daca8c511960ee7b2 (diff) | |
download | gdb-b83adf4eebba1713cc928647721382b2e2e2a017.zip gdb-b83adf4eebba1713cc928647721382b2e2e2a017.tar.gz gdb-b83adf4eebba1713cc928647721382b2e2e2a017.tar.bz2 |
Doc C language guidelines.
Diffstat (limited to 'sim/README-HACKING')
-rw-r--r-- | sim/README-HACKING | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sim/README-HACKING b/sim/README-HACKING index 21c34f6..fd6aae1 100644 --- a/sim/README-HACKING +++ b/sim/README-HACKING @@ -162,3 +162,27 @@ For a list of all of them, see common/tconfig.in. It contains them all, commented out. The intent is that a new port can just copy this file and define the ones it needs. + +C Language Assumptions +====================== + +The programmer may assume that the simulator is being built using an +ANSI C compiler that supports a 64 bit data type. Consequently: + + o prototypes can be used (although using + PARAMS() and K&R declarations wouldn't + go astray). + + o If sim-types.h is included, the two + types signed64 and unsigned64 are + available. + + o The type `unsigned' is valid. + +However, the user should not assume: + + o `<number>LL' is acceptable. Microsoft-C + doesn't reconize it. + + o `long long' or `_int64' provides a 64 bit + integer data type. |