- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I want to modify the gcc source files along with the nios2 development board. How to make the gcc source files to executable? Are there some documents availble for achieving that?
Thanks!Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm a little confused by your question. I don't see why changing the board would mean you have to change the compiler. You would only need to modify the compiler if you were changing the processor.
You can modify the compiler to change the linker defaults, but all these options can either be changed at the command line or in a linker script. The only documents for how to build the compiler are the Gnu documents and we would very much advise you against doing this, unless you've done it before.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by rugbybloke@Dec 2 2004, 10:11 AM i'm a little confused by your question. i don't see why changing the board would mean you have to change the compiler. you would only need to modify the compiler if you were changing the processor.
you can modify the compiler to change the linker defaults, but all these options can either be changed at the command line or in a linker script.
the only documents for how to build the compiler are the gnu documents and we would very much advise you against doing this, unless you've done it before. --- Quote End --- thanks! Yes, I would like to build some special hardware components in the nios2 system and thus the compile should support the software for the hardware architecture. I want to add some special assembly instructions(machine instructions) by myself. The compile need to be able to recognize the assembly instructions and generate the machine codes correspondingly. I could use some existing instructions to make use of the new hardware components, but this method is not very flexible. By the way, are you familiar with nios2 architecture? I want someone could discuss the nios2 architecture implimentation since I am trying to add some new components in it. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try to use the built in system for custom instructions. Great chance it wil do the job you want to do. If not, please explain a bit more in detail.
Stefaan- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Cloud,
> I want to add some special assembly instructions(machine instructions) > by myself. The compile need to be able to recognize the assembly instructions > and generate the machine codes correspondingly. If you can make do using a macro and inline assembly, it'll save you lots of work ... both now and in the future ;-) --Scott
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page