public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Minimal gcc installation
@ 2005-08-15 15:30 Vijaya Kishore Idimadakala
  2005-08-15 16:24 ` random
  0 siblings, 1 reply; 3+ messages in thread
From: Vijaya Kishore Idimadakala @ 2005-08-15 15:30 UTC (permalink / raw)
  To: gcc-help

Dear Sir/Madam,

I am trying to compile a Hello World program on a
board which has very small RAM (about 32MB). Hence I
want a minimal version of gcc on the board. 

I would like to know if there is a minimal version of
gcc that I can install on my board to get my programs
running and if there is, any useful links to resources
are greatly appreciated.

Any suggestions and help is greatly greatly
appreciated. 

Thanks in advance and have a wonderful day, 
Vijay 





		
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Minimal gcc installation
  2005-08-15 15:30 Minimal gcc installation Vijaya Kishore Idimadakala
@ 2005-08-15 16:24 ` random
  0 siblings, 0 replies; 3+ messages in thread
From: random @ 2005-08-15 16:24 UTC (permalink / raw)
  To: Vijaya Kishore Idimadakala; +Cc: gcc-help

Vijaya Kishore Idimadakala wrote:

>Dear Sir/Madam,
>
>I am trying to compile a Hello World program on a
>board which has very small RAM (about 32MB). Hence I
>want a minimal version of gcc on the board. 
>
>I would like to know if there is a minimal version of
>gcc that I can install on my board to get my programs
>running and if there is, any useful links to resources
>are greatly appreciated.
>
>Any suggestions and help is greatly greatly
>appreciated. 
>
>Thanks in advance and have a wonderful day, 
>Vijay 
>  
>
If this is obvious, I apologise, but do you realise that gcc is designed
so that the computer you compile ON and the computer you compile
programs FOR can be totally different? (For example, I use my mac to
compile programs for my Gameboy Advance, and also my Dreamcast. Neither
could run gcc themselves).

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Minimal gcc installation
@ 2005-08-15 16:17 Meissner, Michael
  0 siblings, 0 replies; 3+ messages in thread
From: Meissner, Michael @ 2005-08-15 16:17 UTC (permalink / raw)
  To: Vijaya Kishore Idimadakala, gcc-help

In general, it helps to know the details of the board, libraries, etc.
so we can better answer your question.

I suspect the main problem is printf is just too big for 32K,
particularly the general printf that has support for floating point and
long long outputs.  This in turn will drag in all of the support for
floating point and long long arithmetic.

If you are using libraries based on newlib, you can use a slimmer
version 'iprintf' which doesn't have the floating point support builtin
(I don't recall if it has long long however).

For just testing, it is better to use the system call that printf uses
(such as write in UNIX and newlib based systems), and don't use printf
at all.

-----Original Message-----
From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On
Behalf Of Vijaya Kishore Idimadakala
Sent: Monday, August 15, 2005 11:31 AM
To: gcc-help@gcc.gnu.org
Subject: Minimal gcc installation

Dear Sir/Madam,

I am trying to compile a Hello World program on a
board which has very small RAM (about 32MB). Hence I
want a minimal version of gcc on the board. 

I would like to know if there is a minimal version of
gcc that I can install on my board to get my programs
running and if there is, any useful links to resources
are greatly appreciated.

Any suggestions and help is greatly greatly
appreciated. 

Thanks in advance and have a wonderful day, 
Vijay 





		
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-08-15 16:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-15 15:30 Minimal gcc installation Vijaya Kishore Idimadakala
2005-08-15 16:24 ` random
2005-08-15 16:17 Meissner, Michael

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).