Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
18 years ago

nios assembly in C code

hi everyone,

This is my first participation to the forum. I'd appreciate your help.

I'm trying to convert a function in C code into assembly to reduce the time taken for execution and compilation. i just wanna know how to mix between the c code and the nios assembly.is there a certain syntax to use?

and how to access the C variables in the assembly code. for example:

void filter (int input,int & y)

how to access the variable "input" using assembly?i mean how to know the address that this variable is saved at, or whatever?

thx a lot.looking forward to ur reply

2 Replies