Wednesday 15 June 2011

8051 - Setup Xcode for using external compiler -


I am trying to use the encode as an editor for the microcontroller code. I want to use build, run buttons, how can I use them to trigger a script compiling the program? I already have a script which works on the command line. I have to pass some criteria, like file name and maybe some options I am using SDCC which is a 8501 compiler What is a custom target in Xcode Or is it possible to create something, so that he calls the script and sends the file name or parameter? Any examples on how to do this? Of course I can not use GCC for this.

Good, you get the "external build system" project:

  • - & gt; New - & gt; Project - & gt; OS X - & gt; External Build System - & gt;
  • Set "/ bin / bash" in the "Build Tools" field
  • Set up other information and create projects
  • Select your target and select "Info" tab Set logic (given on the name of your script and the argument script) and the work directory (if necessary) you can change the construction tools here.

    If you want to set a different script as a run command than:

    • Click below on your current plan and "plan Edit ... "Select
    • Select" Run "in the left panel
    • Click the" Info "tab: Select" Executable "- & gt; "Other ..." - & gt; Navigate to the / bin directory (Command + Shift + G) - & gt; Select "Bash" to set "Debugger" in "None"
    • "Logic" tab: set logic (your script and argument have to be passed)
    • "Options" tab: Set up the work directory.

      I usually use only one script (set as run script) in this case just leave the argument on the "info" tab of the target.

      Edit : There is no need to pass any of the arguments to make a creation tool, just set the directory appropriately and find out there the makefile .

No comments:

Post a Comment