Click here to Skip to main content
15,916,601 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Optimisation challenge... Pin
KarstenK30-Jun-10 4:38
mveKarstenK30-Jun-10 4:38 
GeneralRe: Optimisation challenge... Pin
MarkB77730-Jun-10 10:52
MarkB77730-Jun-10 10:52 
Hi Aescleal,

Thanks for your answer. I should been more explicit though. Its a C compiler, STRING is a type definition.

The code is in an Atmel microcontroller and has very little space left in flash for more code, that was why I used the global variable instead of a local pointer each time the function was called.

A work mate pointed out I could use sprintf.. which would likely be no faster, but it would be much cleaner looking.

Your right about the macro calls - I'm going to take those out.


Thanks,
Mark Brock
"We're definitely not going to make a G or a PG version of this. It's not PillowfightCraft." -- Chris Metzen

GeneralRe: Optimisation challenge... Pin
Aescleal30-Jun-10 11:17
Aescleal30-Jun-10 11:17 
AnswerRe: Optimisation challenge... Pin
KarstenK30-Jun-10 3:50
mveKarstenK30-Jun-10 3:50 
AnswerRe: Optimisation challenge... [modified] Pin
Chris Losinger30-Jun-10 4:19
professionalChris Losinger30-Jun-10 4:19 
GeneralRe: Optimisation challenge... Pin
MarkB77730-Jun-10 11:01
MarkB77730-Jun-10 11:01 
GeneralRe: Optimisation challenge... Pin
Chris Losinger30-Jun-10 11:41
professionalChris Losinger30-Jun-10 11:41 
GeneralRe: Optimisation challenge... Pin
MarkB77730-Jun-10 12:00
MarkB77730-Jun-10 12:00 
QuestionWin32_ScheduledJob Pin
Jayapal Chandran29-Jun-10 23:36
Jayapal Chandran29-Jun-10 23:36 
Questionscollbar in CStatic Pin
kk.tvm29-Jun-10 23:28
kk.tvm29-Jun-10 23:28 
AnswerRe: scollbar in CStatic Pin
Cedric Moonen29-Jun-10 23:37
Cedric Moonen29-Jun-10 23:37 
GeneralRe: scollbar in CStatic Pin
kk.tvm29-Jun-10 23:57
kk.tvm29-Jun-10 23:57 
GeneralRe: scollbar in CStatic Pin
Cedric Moonen30-Jun-10 0:13
Cedric Moonen30-Jun-10 0:13 
GeneralRe: scollbar in CStatic Pin
kk.tvm30-Jun-10 0:39
kk.tvm30-Jun-10 0:39 
GeneralRe: scollbar in CStatic Pin
Cedric Moonen30-Jun-10 1:06
Cedric Moonen30-Jun-10 1:06 
GeneralRe: scollbar in CStatic Pin
kk.tvm30-Jun-10 1:21
kk.tvm30-Jun-10 1:21 
QuestionMessage Removed Pin
29-Jun-10 22:34
learningvisualc29-Jun-10 22:34 
AnswerRe: Detecting sim card reader Pin
LloydA11130-Jun-10 1:16
LloydA11130-Jun-10 1:16 
Questionconditional menu Pin
josip cagalj29-Jun-10 22:27
josip cagalj29-Jun-10 22:27 
AnswerRe: conditional menu Pin
Richard MacCutchan30-Jun-10 1:34
mveRichard MacCutchan30-Jun-10 1:34 
AnswerRe: conditional menu Pin
KarstenK30-Jun-10 3:46
mveKarstenK30-Jun-10 3:46 
GeneralRe: conditional menu Pin
josip cagalj30-Jun-10 3:50
josip cagalj30-Jun-10 3:50 
GeneralRe: conditional menu Pin
KarstenK30-Jun-10 3:55
mveKarstenK30-Jun-10 3:55 
GeneralRe: conditional menu Pin
josip cagalj30-Jun-10 3:57
josip cagalj30-Jun-10 3:57 
QuestionHow to distinguish a physical printer from a virtual printer? Pin
lek25829-Jun-10 21:36
lek25829-Jun-10 21:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.