From b83adf4eebba1713cc928647721382b2e2e2a017 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Wed, 3 Sep 1997 07:34:59 +0000 Subject: [PATCH] Doc C language guidelines. --- sim/README-HACKING | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/sim/README-HACKING b/sim/README-HACKING index 21c34f625fd..fd6aae19f91 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 `LL' is acceptable. Microsoft-C + doesn't reconize it. + + o `long long' or `_int64' provides a 64 bit + integer data type. -- 2.30.2