Re: Control initialised data layout?
Re: Control initialised data layout?
- Subject: Re: Control initialised data layout?
- From: "MacArthur, Ian (SELEX) (UK)" <email@hidden>
- Date: Wed, 1 Aug 2007 08:46:29 +0100
- Thread-topic: Control initialised data layout?
> Thank you all for your suggestions :-) All good ideas... however
> there is one vital piece of information that I omitted: the C file
> which contains the two buffers are from a third party and cannot be
> changed - I can see the code, but can't change it... sort of an SDK.
> Does this mean there are no options left? If so, I'll need to raise
> it as an issue with the third party in the hope they will change the
> source code to cater for Xcode :-/
I don't believe this is an Xcode issue, or even an Apple issue - I'd
guess that most recent gcc variants would most likely do the same.
Actually, I'm surprised their code works at all, as (in my experience) a
lot of compilers make there own decisions about what to layout where in
memory.
Sure, we *used* to assume with impunity that items of similar type
declared next to each other would be allocated next to each other. Like
25 years ago. But not now. Way back when, I even spent some time fixing
a load of embedded code that died for exactly that reason following an
"upgrade" of the tools...
I wonder what compiler they are using that this does work with?
SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL
A company registered in England & Wales. Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden