Hi, I want to know the average size of the programs for microblaze (Xilkernel, Uart managment, SRAM managment, Ethernet with Lwip). I think that the size of my program is enormous. Even if i choose optimization in compiler option, the program size is too big. My Progam size : 900 ko (My Code, Xilkernel without Lwip) Size of executable.elf Microblaze OPB | - SRAM Controller | - Ethernet Lite | - UART Lite | - UART 16550 | - Timer | - Interrupt controller | - IPIF with 3 interrupt Thank you. Best regards. --- Yannick
Program size - Microblaze
Started by ●August 28, 2007
Reply by ●August 28, 20072007-08-28
> I want to know the average size of the programs for microblaze?> (Xilkernel, Uart managment, SRAM managment, Ethernet with Lwip). > I think that the size of my program is enormous. Even if i choose > optimization in compiler option, the program size is too big. > > My Progam size : 900 ko (My Code, Xilkernel without Lwip)I presume this is supposed to say 900KBytes? How are you obtaining this figure? Are you looking at the raw binary, or some other format such as elf or hex? -- Regards, Richard. + http://www.FreeRTOS.org A free real time kernel for 8, 16 and 32bit systems. + http://www.SafeRTOS.com An IEC 61508 certified real time kernel for safety related systems.
Reply by ●August 28, 20072007-08-28
On Aug 28, 8:35 am, Yannick <yannick.d...@gmail.com> wrote:> Hi, > > I want to know the average size of the programs for microblaze > > YannickThat's sort of like asking "How long is a piece of string?" My guess is that it will be somewhere between several kilobytes and a couple of megabytes. Give or take. G.
Reply by ●August 28, 20072007-08-28
ghelbig@lycos.com wrote:> Yannick <yannick.d...@gmail.com> wrote: >> >> I want to know the average size of the programs for microblaze > > That's sort of like asking "How long is a piece of string?" > > My guess is that it will be somewhere between several kilobytes > and a couple of megabytes. Give or take.Which would make the average about 1 megabyte. :-) -- Chuck F (cbfalconer at maineline dot net) Available for consulting/temporary embedded and systems. <http://cbfalconer.home.att.net> -- Posted via a free Usenet account from http://www.teranews.com
Reply by ●August 28, 20072007-08-28
On Tue, 28 Aug 2007 08:35:37 -0700, Yannick <yannick.deal@gmail.com> wrote:>... the program size is too big. > >My Progam size : 900 ko (My Code, Xilkernel without Lwip) > >Size of executable.elfexecutable.elf is not only program instructions and initialized data. Research what all an ELF file contains. -- Dan Henry
Reply by ●August 29, 20072007-08-29
CBFalconer wrote:> ghelbig@lycos.com wrote: >> Yannick <yannick.d...@gmail.com> wrote: >>> I want to know the average size of the programs for microblaze >> That's sort of like asking "How long is a piece of string?" >> >> My guess is that it will be somewhere between several kilobytes >> and a couple of megabytes. Give or take. > > Which would make the average about 1 megabyte. :-)Depends on the distribution. A million 7-Kb programs and one 2-Mb program will have an average[1] size of slightly over 7 Kb. Phil [1] Well, mean. Mode and median are exactly 7Kb. -- Philip Potter pgp <at> doc.ic.ac.uk
Reply by ●August 29, 20072007-08-29
Yannick wrote:> I want to know the average size of the programs for microblaze > (Xilkernel, Uart managment, SRAM managment, Ethernet with Lwip). > I think that the size of my program is enormous. Even if i choose > optimization in compiler option, the program size is too big. > > My Progam size : 900 ko (My Code, Xilkernel without Lwip) > > Size of executable.elf > > > Microblaze > OPB > | - SRAM Controller > | - Ethernet Lite > | - UART Lite > | - UART 16550 > | - Timer > | - Interrupt controller > | - IPIF with 3 interrupt > > Thank you. > Best regards.On MicroBlaze, a lot of the standard library functions can swell the executable massively. For example, don't use printf() if you can avoid it - use the slimline xil_printf() instead. Phil -- Philip Potter pgp <at> doc.ic.ac.uk