CrossStudio for ARM - Symbol Browser

Started by "Rode, Dinesh (IE03x)" April 29, 2009
Hello,

Has anybody used CrossStudio Symbol Browser?

Is there any way to get list of removed symbols when I select option
"Enable Unused Symbol Removal"

Thanks & Regards
Dinesh



An Engineer's Guide to the LPC2100 Series

Rode, Dinesh (IE03x) wrote:
> Hello,
>
>
>
> Has anybody used CrossStudio Symbol Browser?
>
> Is there any way to get list of removed symbols when I select option
> "Enable Unused Symbol Removal"
>
>
No.

Generate a map file for the first build without symnbol removal, then
build with symbol removal, and compare the two files using Araxis Merge
using a column filter to filter out the values of the symbols (which
will change). The lines that differ indicate what (public) symbols are
removed.

-- Paul.

Thanks for reply Paul.

My code is not working if I enable "Enable Unused Symbol Removal"
option. (Otherwise it is working)

How can I debug this issue?

Thanks & Warm Regards

Dinesh

________________________________

From: l... [mailto:l...] On Behalf
Of Paul Curtis
Sent: Wednesday, April 29, 2009 11:59 AM
To: l...
Subject: Re: [lpc2000] CrossStudio for ARM - Symbol Browser

Rode, Dinesh (IE03x) wrote:
> Hello,
>
> Has anybody used CrossStudio Symbol Browser?
>
> Is there any way to get list of removed symbols when I select option
> "Enable Unused Symbol Removal"
No.

Generate a map file for the first build without symnbol removal, then
build with symbol removal, and compare the two files using Araxis Merge
using a column filter to filter out the values of the symbols (which
will change). The lines that differ indicate what (public) symbols are
removed.

-- Paul.



Please help people to help you.

What do you mean by "not working".
Does it fail to compile?
Does it fail to link?
Does it compile and link successfully but then behave differently (not how you intended) when run?
Does the Crossworks IDE crash?
Does the cup of tea on your desk taste funny when you use that option?

Yes I know that last possibility is unlikely; you might prefer coffee.

But you have to understand that we are not clairvoyant.
We only know what you tell us.
And it's a guessing game as to what _you_ have done differently from many other people for whom it works.

For example, if you have a symbol that is declared/defined in C but only referred to in assembly, then you might need __attribute__ ((used)) . This is a gcc issue.

Regards,
Danish (note subtle difference in name from OP)
--- In l..., "Rode, Dinesh (IE03x)" wrote:
>
>
>
> Thanks for reply Paul.
>
> My code is not working if I enable "Enable Unused Symbol Removal"
> option. (Otherwise it is working)
>
> How can I debug this issue?
>
> Thanks & Warm Regards
>
> Dinesh
>

It is compiling and linking successfully but behave differently (I am
not getting anything on LCD display. All outputs are showing high) when
run.

Dinesh

________________________________

From: l... [mailto:l...] On Behalf
Of Danish Ali
Sent: Wednesday, April 29, 2009 1:11 PM
To: l...
Subject: [lpc2000] Re: CrossStudio for ARM - Symbol Browser

Please help people to help you.

What do you mean by "not working".
Does it fail to compile?
Does it fail to link?
Does it compile and link successfully but then behave differently (not
how you intended) when run?
Does the Crossworks IDE crash?
Does the cup of tea on your desk taste funny when you use that option?

Yes I know that last possibility is unlikely; you might prefer coffee.

But you have to understand that we are not clairvoyant.
We only know what you tell us.
And it's a guessing game as to what _you_ have done differently from
many other people for whom it works.

For example, if you have a symbol that is declared/defined in C but only
referred to in assembly, then you might need __attribute__ ((used)) .
This is a gcc issue.

Regards,
Danish (note subtle difference in name from OP)
--- In l... ,
"Rode, Dinesh (IE03x)" wrote:
>
> Thanks for reply Paul.
>
> My code is not working if I enable "Enable Unused Symbol Removal"
> option. (Otherwise it is working)
>
> How can I debug this issue?
>
> Thanks & Warm Regards
>
> Dinesh
>



> It is compiling and linking successfully but behave differently (I am
> not getting anything on LCD display. All outputs are showing high) when
> run.

The best thing to do is debug why this is happening.

--
Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk
CrossWorks for ARM, MSP430, AVR, MAXQ, and now Cortex-M3 processors

Hi,

> > It is compiling and linking successfully but behave differently (I am
> > not getting anything on LCD display. All outputs are showing high) when
> > run.
>
> The best thing to do is debug why this is happening.

...and time could be a factor.

--
Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk
CrossWorks for ARM, MSP430, AVR, MAXQ, and now Cortex-M3 processors

Rode, Dinesh (IE03x) wrote:

> My code is not working if I enable "Enable Unused Symbol Removal"
> option. (Otherwise it is working)

You are probably trying to access a symbol that is at some fixed
location, but you are not acessing it by name.

In that case, the linker cannot find a reference to it and
removes it from the binary image.

Just guessing.

Ralph