Package: sdcc
Version: 3.4.0
Severity: wishlist

Dear Maintainer,

I needed sdcc in order to build Contiki[1] on a certain 8051-based
micro-controller.

It turned out that the version of sdcc included with Debian does not
support the "huge" memory model for those chips. I originally followed
instructions at [2]. Eventually I narrowed it to the attached patch.
Please apply it in the next version.

[1] http://contiki-os/
[2] https://github.com/contiki-os/contiki/wiki/8051-Requirements

-- 
Tzafrir Cohen
[email protected]
From: Tzafrir Cohen <[email protected]>
Subject: Add 'huge' memory model

Index: sdcc-3.3.0+dfsg/device/lib/incl.mk
===================================================================
--- sdcc-3.3.0+dfsg.orig/device/lib/incl.mk	2012-07-09 20:46:49.000000000 +0300
+++ sdcc-3.3.0+dfsg/device/lib/incl.mk	2014-07-01 12:05:48.577189517 +0300
@@ -95,4 +95,4 @@
   assert.c \
   time.c
 
-MODELS = small medium large
+MODELS = small medium large huge
Index: sdcc-3.3.0+dfsg/device/lib/Makefile.in
===================================================================
--- sdcc-3.3.0+dfsg.orig/device/lib/Makefile.in	2012-07-09 20:46:49.000000000 +0300
+++ sdcc-3.3.0+dfsg/device/lib/Makefile.in	2014-07-01 15:38:14.258666782 +0300
@@ -182,7 +182,7 @@
 endif
 
 ifeq ($(OPT_DISABLE_MCS51), 0)
-TARGETS        += models small-mcs51-stack-auto
+TARGETS        += models model-mcs51-stack-auto
 endif
 
 ifeq ($(OPT_DISABLE_PIC14), 0)

Reply via email to