This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: code size


Suet Fei Li wrote:
> 
> Thanx a lot!
> there are lots of diag_... hal_diag stuff that I do not need. Is there a way
> to get rid of them.
> 
> P.S. my code is 23K now.

Generate a linker map by using the the option on the link line:
"-Wl,-Map,foo" where foo is the name of the map file. This will tell you
exactly why each symbol is pulled in. 

If you are not using any diag output stuff at all you could also probably
disable CYGSEM_HAL_VIRTUAL_VECTOR_SUPPORT. Let the list know if you have
any problems.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]