Microblaze asm and C shared variables

Jun 11, 2004 3 Replies

Hi all.



I have to write a code for the MicroBlaze soft processor (Xilinx Platform Studio 6.1.03i) and I am facing the following problem: both my assembly code and my c code have to access some shared (global!) variables but I do not know how to do it. I downloaded all the MicroBlaze documentation from the Xilinx web site (or at least I am convinced I did) but I did not find any clue. Does someone of you out there know how to do it?



Regards,



Andrea Sabatini


Andrea,

If you are looking for ways on how to pass variables to assembly instructions in MicroBlaze, check out the very last passage in the following solution record:

formatting link

Hope this helps,

Matt

Andrea Sabat> Hi all.

Matt,

Thank you for your reply. I am now facing another problem. I would like to call C routines from my assemble code but I did not found a place where there is written how to do it. I am able to do it with routines that do not need input parameters and do not return any value but I need to know how to do it in a general case (presence of ins and outs).

Thanks in advance,

Andrea

formatting link

1&getPagePath=18561

Platform

code

not

the

any

"Andrea Sabatini" escribió en el mensaje news:40cd7bb7$0$6795$ snipped-for-privacy@news.xsall.nl...

not

to

check out the C calling convention

formatting link

assembly

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required