[sv-cc] Another errata for 32 bit wide items ?

From: Michael Rohleder <michael.rohleder@freescale.com>
Date: Wed Oct 27 2004 - 10:08:42 PDT

Hi all,

triggered by Ralph's proposal I would like to request to file an
additional errata.
If you look at this excerpt from his proposal:

typedef unsigned int svBitActual32;
typedef struct {unsigned int part1; unsigned int part2;} svLogicActual32;

it is obvious that it is ASSUMED that 'unsigned int' is a 32 bit integer
value. Since we clearly have
identified that this is not neccessarily the case for all
platforms/C-compilers/... we might think about
replacing 'unsigned int' by 'uint32_t' whenever we assume 32 bit wide
integer values.

As Ralph pointed out that this is general problem, I suggest to file a
new errata stating that we should
replace 'all references to unsigned int whenever it is assumed that
unsigned int is 32 bit wide by uint32_t'.
Alternatively we might borrow one of the PLI specific definitions for
this task. Ralph pointed out that
this very likely applies also to E.7.7, and the svBitVec32 defs, etc. in
F.1 and 9.1.2.

The idea behind this is that we better don't put in any _assumptions_ of
integer file sizes; instead make
clear that this is the intended size. To my knowledge uint32_t is
defined by the C standard as a 32 bit
wide integer type.

Regards,
-Michael

-- 
NOTE: The content of this message may contain personal views 
      which are not neccessarily the views of Freescale, unless specifically stated.
 
         ___________________________________________________
        |                                                   |
      _ | Michael Rohleder            Tel: +49-89-92103-259 | _
     / )| Freescale Semiconductor     Fax: +49-89-92103-680 |( \
    / / |      Freescale Halbleiter Deutschland GmbH        | \ \
  _( (_ |  _   Schatzbogen 7, D-81829 Munich, Germany    _  | _) )_
 (((\ \>|_/ >                                           < \_|</ /)))
 (\\\\ \_/ /    mailto:Michael.Rohleder@freescale.com     \ \_/ ////)
  \       /_______________________________________________\       /
   \    _/                                                 \_    /
   /   /                                                     \   \
The information contained in this email has been classified as:
General Business Information                     ( )
Freescale Internal Use Only         ( )
Freescale Confidential Proprietary  ( )
*** This note may contain Freescale Confidential Proprietary or Freescale Internal Use Only Information and is intended to be reviewed by only the individual or organization named above. If you are not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any review, dissemination or copying of this email and its attachments, if any, or the information contained herein is prohibited. If you have received this email in error, please immediately notify the sender by return email and delete this email from your system. 
    Thank you! ***
Received on Wed Oct 27 10:09:04 2004

This archive was generated by hypermail 2.1.8 : Wed Oct 27 2004 - 10:09:06 PDT