nofralloc error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

nofralloc error

1,123 Views
olegivanus
Contributor III

when building the project an error is issued, what is the reason?

Labels (1)
Tags (1)
0 Kudos
1 Reply

508 Views
trytohelp
NXP Employee
NXP Employee

Hi Oleg,

I don't think this post is at right place in License box.

I will move it.

Following the info I found it seems you're using CW for MCU V10.5 for MPC564x device.

You want to use the nofralloc instruction.

In the MCU_Power-Architecture_Compiler.pdf manual, page 346 I found the info:

+++++++++++++++++++++++++++

20.3.5 nofralloc

Specifies that the function will build a stack frame explicitly.

nofralloc

Use the nofralloc directive so that an inline assembly function does not build a stack

frame. When you use nofralloc , if you have local variables, parameters or make function

calls, you are responsible for creating and deleting your own stack frame. For an example

of nofralloc , see the file __start.c in the directory:

InstallDir\PowerPC_EABI_Support\Runtime\Src

where InstallDir is the name of the directory on your host computer where you installed

your CodeWarrior development tools.

+++++++++++++++++++++++++++

The path provided is not correct.

Please have a look to \CW MCU v10.5\MCU\PA_Support\ewl\EWL_Runtime\Runtime_PA\Source folder.

the __start.c will included the following:

++++++++++++++++++++++++++

...

asm void __start(register int argc, register char **argv, register char **envp)

{

    nofralloc                            /* MWERKS: explicitly no stack */

                                        /* frame allocation */

    mr        r14, argc

...

++++++++++++++++++++++++++

Hope this will help you.

Regards

Pascal

0 Kudos