This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
RE: printf too large for my 16 bit address mode
- From: "Jon Beniston" <jon at beniston dot com>
- To: "'Florent DEFAY'" <spira dot inhabitant at gmail dot com>, <newlib at sources dot redhat dot com>
- Date: Tue, 2 Jun 2009 19:56:34 +0100
- Subject: RE: printf too large for my 16 bit address mode
- References: <8502af3c0906020212n1358ecdfwe374d4e433e9390b@mail.gmail.com>
Hi Florent,
Can you try using iprintf instead? This is an integer only version of
printf, so will save FP libraries being linked in, which will make your
binary much smaller.
Cheers,
Jon
-----Original Message-----
From: newlib-owner@sourceware.org [mailto:newlib-owner@sourceware.org] On
Behalf Of Florent DEFAY
Sent: 02 June 2009 10:12
To: newlib@sources.redhat.com
Subject: printf too large for my 16 bit address mode
Hi,
I ported newlib to a new 16 bit target.
I encounter a problem.
Size of address is 16 bit. When I compile a program using printf, the .text
section is longer than 0xFFFF, even if the Newlib was compiled with -Os
option.
Then the program cannot be executed.
I wonder if there is any way to build a tiny Newlib which would be small
enough to fit my case. All I need is printf and scanf.
Regards.
Florent