--out-fmt-s19 turning into --out-fmt-elf if s19 was already
selected.
* src/SDCCmain.c (linkEdit): don't define SSEG for HC08
* src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
contiguous with data
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3580
4a8a32a2-be11-0410-ad9d-
d568d2c75423
+2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
+
+ * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
+ --out-fmt-s19 turning into --out-fmt-elf if s19 was already
+ selected.
+ * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
+ * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
+ contiguous with data
+
2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
* device/lib/_gptrget.c (_gptrget),
2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
* device/lib/_gptrget.c (_gptrget),
#define OPTION_STACK_8BIT "--stack-8bit"
#define OPTION_OUT_FMT_IHX "--out-fmt-ihx"
#define OPTION_STACK_8BIT "--stack-8bit"
#define OPTION_OUT_FMT_IHX "--out-fmt-ihx"
+#define OPTION_OUT_FMT_S19 "--out-fmt-s19"
#define OPTION_LARGE_MODEL "--model-large"
#define OPTION_MEDIUM_MODEL "--model-medium"
#define OPTION_SMALL_MODEL "--model-small"
#define OPTION_LARGE_MODEL "--model-large"
#define OPTION_MEDIUM_MODEL "--model-medium"
#define OPTION_SMALL_MODEL "--model-small"
{ 'L', NULL, NULL, "Add the next field to the library search path" },
{ 0, OPTION_LIB_PATH, NULL, "<path> use this path to search for libraries" },
{ 0, OPTION_OUT_FMT_IHX, NULL, "Output in Intel hex format" },
{ 'L', NULL, NULL, "Add the next field to the library search path" },
{ 0, OPTION_LIB_PATH, NULL, "<path> use this path to search for libraries" },
{ 0, OPTION_OUT_FMT_IHX, NULL, "Output in Intel hex format" },
- { 0, "--out-fmt-s19", &options.out_fmt, "Output in S19 hex format" },
+ { 0, OPTION_OUT_FMT_S19, NULL, "Output in S19 hex format" },
{ 0, OPTION_XRAM_LOC, NULL, "<nnnn> External Ram start location" },
{ 0, OPTION_XRAM_SIZE, NULL, "<nnnn> External Ram size" },
{ 0, OPTION_IRAM_SIZE, NULL, "<nnnn> Internal Ram size" },
{ 0, OPTION_XRAM_LOC, NULL, "<nnnn> External Ram start location" },
{ 0, OPTION_XRAM_SIZE, NULL, "<nnnn> External Ram size" },
{ 0, OPTION_IRAM_SIZE, NULL, "<nnnn> Internal Ram size" },
+ if (strcmp (argv[i], OPTION_OUT_FMT_S19) == 0)
+ {
+ options.out_fmt = 1;
+ continue;
+ }
+
if (strcmp (argv[i], OPTION_LARGE_MODEL) == 0)
{
_setModel (MODEL_LARGE, argv[i]);
if (strcmp (argv[i], OPTION_LARGE_MODEL) == 0)
{
_setModel (MODEL_LARGE, argv[i]);
WRITE_SEG_LOC (BIT_NAME, 0);
/* stack start */
WRITE_SEG_LOC (BIT_NAME, 0);
/* stack start */
- if ( (options.stack_loc) && (options.stack_loc<0x100) )
+ if ( (options.stack_loc) && (options.stack_loc<0x100) &&
+ !TARGET_IS_HC08)
{
WRITE_SEG_LOC ("SSEG", options.stack_loc);
}
{
WRITE_SEG_LOC ("SSEG", options.stack_loc);
}
{
options.code_loc = 0x8000;
options.data_loc = 0x80;
{
options.code_loc = 0x8000;
options.data_loc = 0x80;
- options.xdata_loc = 0x100;
+ options.xdata_loc = 0; /* 0 means immediately following data */
options.stack_loc = 0x7fff;
options.out_fmt = 1; /* use motorola S19 output */
options.stack_loc = 0x7fff;
options.out_fmt = 1; /* use motorola S19 output */