From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathan Larmour To: Suet Fei Li , eCos discussion Subject: Re: [ECOS] code size Date: Wed, 31 Jan 2001 22:11:00 -0000 Message-id: <3A78FDF7.31F08831@redhat.com> References: <711F6B80B5B4D211BA900090272AB7649DB52B@noyce.eecs.berkeley.edu> X-SW-Source: 2001-01/msg00522.html 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