nofralloc error

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

nofralloc error

2,169件の閲覧回数
olegivanus
Contributor III

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

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 返信

1,554件の閲覧回数
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 件の賞賛
返信