[En-Nut-Discussion] config flashspace usage on SAM7X256
Bernd Walter
enut at cicely.de
Sat Jun 20 16:05:19 CEST 2009
On Sat, Jun 20, 2009 at 01:35:50PM +0200, Harald Kipp wrote:
> Bernd Walter wrote:
>
> > I don't need Ethernut to save anything, because I do it myself in an
> > AT45DB chip.
> > But I'm unable to find the code using it so that I can disable.
> > Or is it just reserved for future use?
>
> Hi Bernd,
Hi Harald,
maybe this is of interest for you and others.
I've reduced the code size about 50k by switching several Ethernut
files to thumb.
Thumb running from flash should be faster on SAM7X anyway.
My own code was thumb already.
os failed because of ISR or assembly code.
dev and arch were not tried because of possible ISR code.
Maybe I missed something.
Others probably want it in a more configureable fashion.
[1491]devel> svn diff contrib/ethernut-4.8.2/
Index: contrib/ethernut-4.8.2/pro/Makefile
===================================================================
--- contrib/ethernut-4.8.2/pro/Makefile (revision 4191)
+++ contrib/ethernut-4.8.2/pro/Makefile (working copy)
@@ -116,6 +116,7 @@
LIBDIR = $(top_blddir)/lib
include $(top_srcdir)/UserConf.mk
include $(top_srcdir)/Makedefs
+CPFLAGS+= -mthumb
SRCS = dhcpc.c resolv.c httpd.c httpd_p.c rfctime.c httpopt.c ssi.c asp.c auth.c cgi.c dencode.c sntp.c syslog.c ftpd.c \
wins.c discover.c snmp.c snmp_agent.c snmp_api.c snmp_auth.c snmp_config.c snmp_mib.c asn1.c \
Index: contrib/ethernut-4.8.2/fs/Makefile
===================================================================
--- contrib/ethernut-4.8.2/fs/Makefile (revision 4191)
+++ contrib/ethernut-4.8.2/fs/Makefile (working copy)
@@ -90,6 +90,7 @@
LIBDIR = $(top_blddir)/lib
include $(top_srcdir)/UserConf.mk
include $(top_srcdir)/Makedefs
+CPFLAGS+= -mthumb
SRCS = pathops.c dirent.c fat.c uromfs.c pnutfs.c \
phatfs.c phatvol.c phatdir.c phatio.c \
Index: contrib/ethernut-4.8.2/crt/Makefile
===================================================================
--- contrib/ethernut-4.8.2/crt/Makefile (revision 4196)
+++ contrib/ethernut-4.8.2/crt/Makefile (working copy)
@@ -85,6 +85,7 @@
LIBDIR = $(top_blddir)/lib
include $(top_srcdir)/UserConf.mk
include $(top_srcdir)/Makedefs
+CPFLAGS+= -mthumb
SRCC = close.c clrerr.c ioctl.c open.c getf.c read.c putf.c write.c fclose.c \
fcloseall.c fdopen.c feof.c ferror.c fflush.c filelength.c fileno.c flushall.c \
Index: contrib/ethernut-4.8.2/gorp/Makefile
===================================================================
--- contrib/ethernut-4.8.2/gorp/Makefile (revision 4191)
+++ contrib/ethernut-4.8.2/gorp/Makefile (working copy)
@@ -45,6 +45,7 @@
LIBDIR = $(top_blddir)/lib
include $(top_srcdir)/UserConf.mk
include $(top_srcdir)/Makedefs
+CPFLAGS+= -mthumb
SRCS = base64/base64_decode.c \
base64/base64_encode.c \
Index: contrib/ethernut-4.8.2/lua/Makefile
===================================================================
--- contrib/ethernut-4.8.2/lua/Makefile (revision 4192)
+++ contrib/ethernut-4.8.2/lua/Makefile (working copy)
@@ -10,6 +10,7 @@
include $(top_srcdir)/UserConf.mk
include $(top_srcdir)/Makedefs
+CPFLAGS+= -mthumb
SRCS = lapi.c ldo.c ldump.c ldebug.c lfunc.c lgc.c \
lmem.c lobject.c lopcodes.c lstate.c lstring.c ltable.c \
Index: contrib/ethernut-4.8.2/net/Makefile
===================================================================
--- contrib/ethernut-4.8.2/net/Makefile (revision 4191)
+++ contrib/ethernut-4.8.2/net/Makefile (working copy)
@@ -86,6 +86,7 @@
LIBDIR = $(top_blddir)/lib
include $(top_srcdir)/UserConf.mk
include $(top_srcdir)/Makedefs
+CPFLAGS+= -mthumb
SRC1 = tcpsock.c tcpsm.c tcpin.c tcpout.c tcputil.c \
udpsock.c udpin.c udpout.c \
--
B.Walter <bernd at bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
More information about the En-Nut-Discussion
mailing list