Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumsgenerating code for Keil compiler
https://www.eclipse.org/forums/index.php/mv/msg/452967/1008588/#msg_1008588
I'm pretty new to eTrice and I just want to find out, if eTrice code-generation would fit in our developement process which uses the Keil toolchain.
Now I've tried the HelloWorld example from eTrice documentation homepage. I set up a Keil project to compile the generated code, so far. Unfortunately, Keil seems to have its own rules, that declaration should be at the beginning of a block, while eTrice generation just puts it, where it first appears. So, when compiling, I get a message:
error: #268: declaration may not appear after executable statement in block
Is there a possibility, to make the generator put declarations at the beginning of a block?
thx,
Stefan ]]>Stefan St2013-02-13T08:31:13-00:00Re: generating code for Keil compiler
https://www.eclipse.org/forums/index.php/mv/msg/452967/1008648/#msg_1008648
we have been aware of this problem.
A strictly ANSI-C compliant compiler requires that variable declarations only occur at the beginning of a block.
But it shouldn't be much work to get that fixed.
Could you please file a bug for this?
Thanks,
Henrik
Am 13.02.2013 12:27, schrieb Stefan St:
> Hello,
>
> I'm pretty new to eTrice and I just want to find out, if eTrice code-generation would fit in our developement process which uses
> the Keil toolchain.
> Now I've tried the HelloWorld example from eTrice documentation homepage. I set up a Keil project to compile the generated code,
> so far. Unfortunately, Keil seems to have its own rules, that declaration should be at the beginning of a block, while eTrice
> generation just puts it, where it first appears. So, when compiling, I get a message:
>
> error: #268: declaration may not appear after executable statement in block
>
> Is there a possibility, to make the generator put declarations at the beginning of a block?
>
> thx,
> Stefan :?]]>Henrik Rentz-Reichert2013-02-13T12:15:22-00:00