This wiki is being migrated to http://www.github.com/z88dk/z88dk/wiki

 

Differences

This shows you the differences between two versions of the page.

libnew:target_embedded [2018/05/09 15:43]
aralbrec mention appmake +glue
libnew:target_embedded [2018/05/09 15:46] (current)
aralbrec
Line 157: Line 157:
will output an 8k rom image (romsize=0x2000) "test.rom" whose physical start address is 0x8000 (rombase=0x8000).  The complete output binary will be inserted into that rom image at the appropriate address specified by CRT_ORG_CODE.  Any unused bytes are set to the fill byte.  If the output binary's address range lies outside the rom's address range, an error will be produced.  In addition to the rom image generated, an ihex file describing the rom image will be produced "test.ihx". will output an 8k rom image (romsize=0x2000) "test.rom" whose physical start address is 0x8000 (rombase=0x8000).  The complete output binary will be inserted into that rom image at the appropriate address specified by CRT_ORG_CODE.  Any unused bytes are set to the fill byte.  If the output binary's address range lies outside the rom's address range, an error will be produced.  In addition to the rom image generated, an ihex file describing the rom image will be produced "test.ihx".
-You can also invoke appmake separately on the command line to manually manipulate output binaries by omitting the "-create-app" option.  "appmake" by itself will list all of its flavours.  Besides "appmake +rom", four particular ones that may be of interest are "appmake +inject", "appmake +extract", "appmake +hex" and "appmake +glue".  The first one can insert binaries into an existing bin or rom file, the second one will extract binaries from an existing rom or bin file and the last one can make ihx files.+You can also invoke appmake separately on the command line to manually manipulate output binaries by omitting the "-create-app" option.  "appmake" by itself will list all of its flavours.  Besides "appmake +rom", four particular ones that may be of interest are "appmake +inject", "appmake +extract", "appmake +hex" and "appmake +glue".  The first one can insert binaries into an existing bin or rom file, the second one will extract binaries from an existing rom or bin file and the third one can make ihx files.
-"appmake +glue" is an alternative to "appmake +rom".  It will glue together sections with different org into a single consolidate representation of memory.  It also understands bankswitched memory so it can generate multiple binaries representing different memory banks.  To use it, you must generate a map file during your compile by adding "-m" to the compile line.  Then you must manually append the *_DATA.bin file to the output *_CODE.bin file as mentioned in the previous section.  *_DATA.bin and *_BSS.bin should then be deleted so that they are not made part of the output binaries.  Afterwards you may want to use "appmake +rom" or "appmake +hex" to further process the output binaries.+"appmake +glue" is an alternative to "appmake +rom".  It will glue together sections with different org into a single consolidated representation of memory.  It also understands bankswitched memory so it can generate multiple binaries representing different memory banks.  To use it, you must generate a map file during your compile by adding "-m" to the compile line.  Then you must manually append the *_DATA.bin file to the output *_CODE.bin file as mentioned in the previous section.  *_DATA.bin and *_BSS.bin should then be deleted so that they are not made part of the output.  Afterwards you may want to use "appmake +rom" or "appmake +hex" to further process the output binaries.
====== Compile Time Customization ====== ====== Compile Time Customization ======
 
libnew/target_embedded.1525876997.txt.gz · Last modified: 2018/05/09 15:43 by aralbrec
 
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki