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++
Announcements
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

TGucl
Beginner
567 Views

Hello

 

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

https://gcc.gnu.org/onlinedocs/gcc/Nios-II-Options.html

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

 

 

 

Thanks

 

0 Kudos
1 Reply
Ahmed_H_Intel1
Employee
131 Views
Hi, Please first check the following two chapters of the "Nios II Software Developer’s Handbook" Chapter 3 and 15: CH3: https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/hb/nios2/n2sw_nii52014.pdf CH15: https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/hb/nios2/n2sw_nii52016.pdf 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.
Reply