|
|
|
|
|
|
|
Re: Looking for example of "Post-build steps" [message #1749031 is a reply to message #1748997] |
Thu, 01 December 2016 05:16   |
Eclipse User |
|
|
|
Jonah Graham wrote on Wed, 30 November 2016 22:23If you want the assembly of each file, the easiest option may be to add "-save-temps" as an additional compiler flag. That will cause GCC to leave the .s file rather than delete it when done. It will also IIRC save the .i (pre-processed) source file too.
Also, if you edit your compile command to run too commands, make sure you join them together with && instead of ;. Otherwise if the first command fails and the second succeeds you won't get a build error, but you will have a broken build.
Thanks Jonah,
Yes, I want assembly for each file, but for the moment I search for a solution for single file. Concerning compiler flags. First I don's use GCC, but ARMCC. Second, I'm not sure if similar flag does exist for this compiler. And finally "Post-build" sounds as something that can be executed after build process ... to process in some way the files produced by build process. Isn't it ?
In other words "automate" the actions that could otherwise be done manually form the command line, i.e.:
- run compiler on .c file that produces object (.o) file
- run "fromelf" command on this .o file to produce assembly file
I believed that "Post-build" option serves for such kind of scenarios. Or I've been mistaken ? If my supposition is correct (i.e. "Post-build" can be used for scenarios as I presented above), probably it would be reasonably to search a solution how to properly integrate "fromelf" execution into "Post-build" Eclipse interface option rather than search for some compiler flag.
After all, could you, please, show me some example where "Post build" is used.
Thanks in advance.
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06409 seconds