Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
21 years ago

Nios without SystemLibrary

Hi,

I am working for a shool projet on Nios II. I was wondering if it was possible to compile and link a program for Nios II without using the SystemLibrary at all. Meaning make the smallest programm possible for Nios 2.

Thanks for you help,

Sylvain

11 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    I can't get you a precise description now ( code is still a school).

    But, my configuration just allows to get rid of standard code.

    crt0.s doesn't change much (I can skip some test and stuf, maybe some jump, and also probable the clear cache, and clear BSS). ( I am using only ASM so dont need BSS)

    exception.s should be much faster because everythiing is removed. In face, irq is kind of equivalient to a jump to the begining .irq section (or maybe .exception dont remember..)

    A few month ago I did a test and there was like 12 cycles between irq appearing on avalon bus and the beginning of the section.. meaning 12 cycle for the jump. But there were like 250 cycles between irq appearing and the beginning on the user handler. (so 240 cycle just for altera cycle). So I guess for high constraint works, they are lot of cycles to save.

    In my modification I put some very specific into the irq section in order to do a scheduler. I am losing most of altera features that I guess most of people would benefit of.

    Sylvain