FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > FPGA

FPGA comp.arch.fpga newsgroup (usenet)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-07-2005, 01:34 PM
JW
Guest
 
Posts: n/a
Default Placing variables at a specific location (address) using microblaze GCC

Hello,

I am trying to figure out the ins and outs of the MB-GCC compiler. I am
not familiar with how to place variable at specific locations in
memory. I have used the #pragma directive with other compilers to nail
down variables to specific locations in memory.

Any help would be appreciated. I think that it may also be neccessary
to create another section in memory using the linker. ie .text or .bss
etc.

Thanks in adavance.

Jeremy

Reply With Quote
  #2 (permalink)  
Old 06-07-2005, 05:01 PM
Zolee
Guest
 
Posts: n/a
Default Re: Placing variables at a specific location (address) using microblaze GCC

Specify a new section for your variables, and add this section to your
linker script with the fixed address.

E.g.:
int fixed_data __attribute__ ((section ("YOURSECTION"))) = 0;

Reply With Quote
  #3 (permalink)  
Old 06-07-2005, 08:40 PM
JW
Guest
 
Posts: n/a
Default Re: Placing variables at a specific location (address) using microblaze GCC

Thank you for your reply, I did finally find this information.

Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Microblaze Functions (Xilinx Specific) [email protected] FPGA 2 04-18-2005 10:16 AM
Microblaze asm and C shared variables Andrea Sabatini FPGA 3 06-14-2004 10:31 PM
MicroBlaze : can I assign Boot BRAM address other than 0x0? louis lin FPGA 0 10-29-2003 09:53 AM


All times are GMT +1. The time now is 12:09 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved