Commit Graph

9 Commits

Author SHA1 Message Date
Lephenixnoir 5be56fe2eb
let the user allocate contexts locally
This incompatible change modifies the allocation method for contexts.
Instead of managing a set of IDs in an malloc()-backed array, contexts
can now be allocated on the stack or static RAM.

Contexts are values of type [prof_t] and can be initialized to the value
provided by prof_make(). lvalues to contexts replace context IDs.

Finally, prof_exec() no longer requires a context to be specified, it
creates one on the fly.
2020-10-13 19:30:45 +02:00
Lephenixnoir 8a0bcfe903
fix a dead wrong call to free(prof_time) 2020-07-20 20:22:09 +02:00
Lephenixnoir 8b074a4e58
update to upcoming timer API of gint 2.1 2020-06-20 23:20:20 +02:00
Lephenixnoir f79e6d2cc6
add support for DESTDIR for packaging 2020-06-01 23:19:29 +02:00
Lephenixnoir ef49aa8da4
build with sh-elf by default (fixes #1) 2020-02-18 07:52:01 +01:00
Lephenixnoir e4cedf72a9 use the target's archiver to create the library 2019-07-29 10:17:21 -04:00
Lephenixnoir 0566fad0c5 add README 2019-07-17 14:39:05 -04:00
Lephenixnoir 2c78a2cfeb basic working implementation with manual calls 2019-07-17 13:00:49 -04:00
Lephenixnoir d8883da3c0 build system 2019-07-17 13:00:20 -04:00