<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>CodeWarrior for MCUのトピックobj file placement</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/obj-file-placement/m-p/146588#M3353</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi again,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I'm sure this has been answered before but is there a way around the way CW handles the obj files it produces.&lt;/DIV&gt;&lt;DIV&gt;I have found that it sticks them all into one directory and you consequently get an error if you have one or more non unique source file names because it wants to write over an already produced obj file name.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Renaming the files to make them unique is not always practical since, in my case, I have a number of 3rd party comercial modules which I can't really change if I want to have an upgrade support.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Is there a work around for this in CW?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;regards&lt;/DIV&gt;&lt;DIV&gt;PhilW&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Apr 2008 12:09:25 GMT</pubDate>
    <dc:creator>electropw</dc:creator>
    <dc:date>2008-04-14T12:09:25Z</dc:date>
    <item>
      <title>obj file placement</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/obj-file-placement/m-p/146588#M3353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi again,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I'm sure this has been answered before but is there a way around the way CW handles the obj files it produces.&lt;/DIV&gt;&lt;DIV&gt;I have found that it sticks them all into one directory and you consequently get an error if you have one or more non unique source file names because it wants to write over an already produced obj file name.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Renaming the files to make them unique is not always practical since, in my case, I have a number of 3rd party comercial modules which I can't really change if I want to have an upgrade support.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Is there a work around for this in CW?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;regards&lt;/DIV&gt;&lt;DIV&gt;PhilW&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2008 12:09:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/obj-file-placement/m-p/146588#M3353</guid>
      <dc:creator>electropw</dc:creator>
      <dc:date>2008-04-14T12:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: obj file placement</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/obj-file-placement/m-p/146589#M3354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Which processor are you targeting?&lt;BR /&gt;One way I could imagine is to use static libraries for all your different 3rd party commercial libraries, then the name collisions are not a problem, and keeping the different libraries separate sounds like a good idea anyway.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2008 12:58:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/obj-file-placement/m-p/146589#M3354</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2008-04-14T12:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: obj file placement</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/obj-file-placement/m-p/146590#M3355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I am targeting the HCS12DG128.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Libraries are a possibility but the module comilations can sometimes be other code dependent.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;On the other hand if the sources are in different directories, they are "unique" and should be treated as such all the way through to linking, don't you think?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Phil&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2008 13:20:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/obj-file-placement/m-p/146590#M3355</guid>
      <dc:creator>electropw</dc:creator>
      <dc:date>2008-04-14T13:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: obj file placement</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/obj-file-placement/m-p/146591#M3356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;If you are building several different sets of output files using several different types of sources, then you could create several different build targets, each using different access paths, to load in the proper files. From the looks of it, though, all outputs land into the /bin directory, or the directory specified in the Target Settings panel's Output Directory setting. You'd select one build target, do the build, remove the output file to a safe directory, select the second build taget, do the build, move the output file again, and so on. It doesn't appear that you can specify mulitiple directories for the output, however.&lt;BR /&gt;&lt;BR /&gt;Another possibility is that CodeWarrior does provide command line tool support, so you could write a script that could specify a different output directory for each build, assuming you're building different programs as describe above. If you're trying to make one program all at once, I don' think that's possible.&lt;BR /&gt;&lt;BR /&gt;---Tom&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2008 22:05:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/obj-file-placement/m-p/146591#M3356</guid>
      <dc:creator>J2MEJediMaster</dc:creator>
      <dc:date>2008-04-14T22:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: obj file placement</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/obj-file-placement/m-p/146592#M3357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Not sure how this would go with the debugger..........&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 10:23:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/obj-file-placement/m-p/146592#M3357</guid>
      <dc:creator>electropw</dc:creator>
      <dc:date>2008-04-15T10:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: obj file placement</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/obj-file-placement/m-p/146593#M3358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Which debugger?&lt;BR /&gt;I asked before, but did not see any answer. So again,&lt;BR /&gt;which processor are you targeting?&lt;BR /&gt;&lt;BR /&gt;Also the troubles with the object file name collision does not happen if the multiple build targets are building static libraries (which then, of course are linked together in a master project) as I did suggest already once, then the output consists in a set of libs only and there is no need to move things around as the lib names can be defined, and therefore can be made distinct.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 11:33:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/obj-file-placement/m-p/146593#M3358</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2008-04-15T11:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: obj file placement</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/obj-file-placement/m-p/146594#M3359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Please don't get short with me.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I did answer you, look a couple up.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Debugger I'm referring to is the CW internal.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 13:24:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/obj-file-placement/m-p/146594#M3359</guid>
      <dc:creator>electropw</dc:creator>
      <dc:date>2008-04-15T13:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: obj file placement</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/obj-file-placement/m-p/146595#M3360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;Actually I do not see the purpose of multiple output directories for a single build target, there is only a single "main" artifact built, or?&lt;BR /&gt;Either an elf file, or a library.&lt;BR /&gt;There are a few additional files built too like the map files, listings or additional srecords, but the names of all of these are deduced of the "main" output file, so there should not be any conflicts, as far as I see.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;A href="http://forums.freescale.com/post?board.id=CW816COMM&amp;amp;message.reply_to_id=4145#" rel="nofollow" target="_blank"&gt;http://forums.freescale.com/post?board.id=CW816COMM&amp;amp;message.reply_to_id=4145#" rel="nofollow" target="_blank&lt;/A&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 21:54:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/obj-file-placement/m-p/146595#M3360</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2008-04-15T21:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: obj file placement</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/obj-file-placement/m-p/146596#M3361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;True, you did mention the HCS12DG128 in the second post.&lt;BR /&gt;So this is about the hiwave debugger, it is actually a bit confusing to call it the "internal" debugger, as hiwave is an external debugger to the code warrior ide. There is an internal one too, but it is not used for the S12.&lt;BR /&gt;&lt;BR /&gt;Back to the topic, I still think the right approach is to use a set of libraries, possibly built as subtargets as suggested by Tom.&lt;BR /&gt;&amp;nbsp;After the initial setup this just builds everything when pressing the debug button, and if you are building on the same machine as you are debugging, then I do not expect propblems with the debugging either (if the elf is built elsewhere, the debugger has to search for the source files, and having multiple ones with the same name may cause that it finds the wrong one first).&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 21:55:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/obj-file-placement/m-p/146596#M3361</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2008-04-15T21:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: obj file placement</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/obj-file-placement/m-p/146597#M3362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Ok thanks,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I'll explore these possibilities and see how I go.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks again&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Phil&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 06:41:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/obj-file-placement/m-p/146597#M3362</guid>
      <dc:creator>electropw</dc:creator>
      <dc:date>2008-04-16T06:41:09Z</dc:date>
    </item>
  </channel>
</rss>

