bladox.com Forum Index bladox.com
Turbo SIM Toolkit Adapter Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

using sprintf

 
Post new topic   Reply to topic    bladox.com Forum Index -> Development
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Wed Jan 05, 2005 5:10 pm    Post subject: using sprintf Reply with quote

I saw this function (sprintf) appears in the ?include\stdio.h? but the linkage stage doesn?t success.
There is a way to add more libs to the make file?( libprintf_flt.a, libprintf_min.a ?)
If yes how?
Code:

LIBDIR = $(TURBO_DIR)/lib
.
.
.
LIB =
Back to top
pz
Guest





PostPosted: Thu Jan 06, 2005 11:17 am    Post subject: Reply with quote

The situation with sprintf and some other calls has longer history. Turbo libc is based on excellent avr-libc project, and while we want to be as much as compatible with avr-libc some things haven't been ported - either seemed to be unstable/buggy, redundant (e.g.malloc), unusable (printf), too low level or mix of these. Some functions were therefore removed from "lib*.a" distribution but not from headers (maintenance reason, keep changes to minimum), which is probably confusing.

As for sprintf it is memory hog, either you have version that is close to standard and it is big or you have smaller version that is not the real thing. If I recall properly it also malloc'es some memory and we wanted to avoid this. In case of little RAM it is a must that developer knows how memory is used. We came with sprint[sci] set of functions that can be used instead of sprintf and that we think fit better to SIM Toolkit world - the way how messages are constructed and passed to user interface.

Anyway you can append your libraries to "LIB = " in Makefile.

We work on new turbo-devel, libc will be updated to avrlibc 1.2.0 and so.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    bladox.com Forum Index -> Development All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group