Hi

I noticed one of projects has (for some historical reason) a few
definitions
like this:


typedef struct _BDT
{
    unsigned char STAT;
    unsigned char CNT;
    unsigned int ADDR;
} BDT;


volatile BDT __at (0x0400+0*8) ep0_o;
...etc...



(These define a USB end points at the given addresses).

Now this won't work if I include this header in several places in my
project,
so I'm planning to change this definition into declaration

volatile BDT ep0_o;

and move the definition to .c file of its own.

Now my questions is if this is going to change the generated code,
especially
if it incurs performance or code size penalty as I'm running on the edge
on both.

br Kusti






This e-mail may contain confidential or privileged information. If you are not 
the intended recipient (or have received this e-mail in error) please notify 
the sender immediately and destroy this e-mail. Any unauthorized copying, 
disclosure or distribution of the material in this e-mail is strictly 
forbidden. We will not be liable for direct, indirect, special or consequential 
damages arising from alteration of the contents of this message by a third 
party or as a result of any virus being passed on or as of transmission of this 
e-mail in general.

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to