Re: [EE] Saving "printf" arguments for later? Real-time on slow processor.
Alan Pearce <[email protected]>
| Newsgroups | gmane.comp.hardware.microcontrollers.pic |
|---|---|
| Message-ID | <CAHD638hGomyMyA=NUG2R=bq+eL3x-KkwnrK9axd8aZCiR56Zxg@mail.gmail.com> |
If printf is a weak function I would replace it with a function that sends the format string out the serial port, complete with the raw variables. Then the format string can be applied to a function on a remote machine to scan the string and variables into appropriate output strings. Is that a practical proposition? On Mon, 20 Jan 2025 at 23:55, Harold Hallikainen <[email protected]> wrote: > The C Microchip uses has some "weak" functions that can be overwritten. It > would be interesting if there were a "degree of strength" on functions so > you could overwrite library functions. On argument passing to functions > like printf where there can be a varying number of arguments and types, > can the argument memory (I guess it would be stack pointer to frame > pointer?) be saved for later processing? That would still require > replacing the existing printf, though. Could the entire stdio source be > replaced? > > Good luck!!! > > Harold > https://w6iwi.org > > > -- > Not sent from an iPhone. > -- > http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive > View/change your membership options at > https://mailman.mit.edu/mailman/listinfo/piclist >