Known Problems Using The Compiler - Intel i960 User Manual

Processor compiler
Hide thumbs Also See for i960:
Table of Contents

Advertisement

12

Known Problems Using the Compiler

12-6
i960 Processor Compiler User's Guide
All that is needed here is to make
#define MY_PORT *((volatile int *) 0x10000)
This suppresses (2), as
between iterations of the loop.
Here are some of the things that have caused trouble for people using the
compiler.
Type Promotion
Users often think it is a bug when the compiler reports an error for code
like this:
int foo (short);
int foo (x)
short x;
{...}
The error message is correct: this code really is erroneous, because the
old-style non-prototype definition passes subword integers in their
promoted types. In other words, the argument is really an
. The correct prototype is this:
short
int foo (int);
Prototype Scope
Users often think it is a bug when the compiler reports an error for code
like this:
int foo (struct mumble *);
struct mumble { ... };
int foo (struct mumble *x)
{ ... }
volatile, as follows:
MY_PORT
must be considered to have changed
MY_PORT
, not a
int

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the i960 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents