Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12409 Discussions

Compiler/linker option to skip localisation of .bss section




I`m using Quartus Lite 17.1 .with nios-elf-gcc version 5.30


We have some static variables which goes to .bss section data segment. When we wanted to increase the size of these static variables we started to get watch dog resets because initialisation of .bss segment started to took longer and there is no piece of code at this level to pad the watch dog.


What I wanted to know is if there is way to tell the compiler/linker skip .bss initalisation ?


Closest I could get is at

which mentions use of -G num but not exactly what I `m looking for.






0 Kudos
1 Reply
Hi, Please first check the following two chapters of the "Nios II Software Developer’s Handbook" Chapter 3 and 15: CH3: CH15: This chapter provides a complete reference of all available commands, options, and settings for the Nios® II Software Build Tools and useful for developing your own embedded software projects, packages, or device drivers. Regards.