Forum Discussion
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- If you are trying to do very specific assignments of code and data to specific memory blocks (eg because of the way they need to be dual-ported, or because you want all code and data accesses to by 'tightly coupled') then you'll almost certainly need to write your own linker script. --- Quote End --- I think a __attribute__ ((section (<section name>))) directive is enough in most cases, especially if you need 'very specific' assignments. --- Quote Start --- You also can't use the Altera-built gcc4 as that puts switch statement jump tables directly into the code segment. --- Quote End --- I can't see any reason for placing jump tables in places other than code segment. Jump tables are strictly bound to the code they are generated for; in other words they ARE part of the code.