From b666d6383bd4c3819a144d2dcae8da71f46ab075 Mon Sep 17 00:00:00 2001 From: sandeep Date: Wed, 7 Nov 2001 06:15:31 +0000 Subject: [PATCH] Added option --use-accelerator (for DS390) git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1520 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/SDCCglobl.h | 2 +- src/SDCCmain.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/SDCCglobl.h b/src/SDCCglobl.h index 9e24a3e4..f1316068 100644 --- a/src/SDCCglobl.h +++ b/src/SDCCglobl.h @@ -226,7 +226,7 @@ struct options int lessPedantic; /* disable some warnings */ int profile; /* Turn on extra profiling information */ int ommitFramePtr; /* Turn off the frame pointer. */ - + int useAccelerator; /* use ds390 Arithmetic Accelerator */ char *calleeSaves[128]; /* list of functions using callee save */ char *excludeRegs[32]; /* registers excluded from saving */ diff --git a/src/SDCCmain.c b/src/SDCCmain.c index 3673b509..baed73f4 100644 --- a/src/SDCCmain.c +++ b/src/SDCCmain.c @@ -171,7 +171,7 @@ optionsTable[] = { { 0, "--dumpliverange", &options.dump_range, NULL }, { 0, "--dumpregpack", &options.dump_pack, NULL }, { 0, "--dumpregassign", &options.dump_rassgn, NULL }, - { 0, "--dumptree", &options.dump_tree, NULL }, + { 0, "--dumptree", &options.dump_tree, "dump front-end AST before generating iCode" }, { 0, OPTION_DUMP_ALL, NULL, "Dump the internal structure at all stages" }, { 0, OPTION_XRAM_LOC, NULL, " External Ram start location" }, { 0, OPTION_IRAM_SIZE, NULL, " Internal Ram size" }, @@ -205,7 +205,8 @@ optionsTable[] = { { 0, OPTION_LESS_PEDANTIC, NULL, "Disable some of the more pedantic warnings" }, { 0, OPTION_SHORT_IS_8BITS, NULL, "Make short 8bits (for old times sake)" }, { 0, "--profile", &options.profile, "On supported ports, generate extra profiling information" }, - { 0, "--fommit-frame-pointer", &options.ommitFramePtr, "Leave out the frame pointer." } + { 0, "--fommit-frame-pointer", &options.ommitFramePtr, "Leave out the frame pointer." }, + { 0, "--use-accelerator", &options.useAccelerator,"generate code for DS390 Arithmetic Accelerator"} }; /** Table of all unsupported options and help text to display when one -- 2.47.2