.o prefix in object files extention [message #1217340] |
Thu, 28 November 2013 17:03  |
Eclipse User |
|
|
|
Hello,
I'm fairly new to xdc and trying to create a new target based on xdc.bld.ITarget2 for the adi blackfin compiler (ccblkfn.exe) and get stuck with situation when a resulting module makefile, based on the new target, has an ".o" prefix in the object file extension, which causes a compile error, since ccblkfn requires a .doj extension.
I also look at the xdc.bld _gen.xs file and see the .o is hardcoded when makefile is created...
Is there a way to get rid of the ".o"?
Thanks in advance,
Serg
|
|
|
|
|
Re: .o prefix in object files extention [message #1219813 is a reply to message #1219380] |
Thu, 05 December 2013 17:45   |
Eclipse User |
|
|
|
ITargetFilters can intercept each generated compile command line, and add another command to it. So, every time the compiler generates a file <name>.doj, a new command is attached that renames that file to <name>.obf, for example. That would work as long as the archiver and the linker accept files with a custom extension. If that's not the case, you would have to keep renaming files before and after invoking these tools.
I am not sure if it's worth the effort, but at this time I don't see a better solution. There are no any plans to rewrite the whole build object model (which includes _gen.xs) to support object files without ".o<suffix>" extension.
For an example of how to create and use an ITargetFilter, look at my post on Feb 19 2013, 16:08, in this thread http://e2e.ti.com/support/embedded/bios/f/355/p/244102/863109.aspx#863109.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07203 seconds