Adding assembly generation for mserial-json
in order to check proper & full inlining.
This commit is contained in:
1 parent
5b9cccd2dd
commit
3d5cc55d0a
2 files changed
+19
No files matched your search
@@ -144,6 +144,8 @@ gene-queue:
|
||||
gene-string:
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) -O3 -march=native -DNDEBUG -S tgen-mstring.c && less tgen-mstring.s
|
||||
|
||||
gene-serial:
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) -O3 -march=native -DNDEBUG -S -std=c11 tgen-mserial.c && less tgen-mserial.s
|
||||
|
||||
# Coverage
|
||||
#####################################################################################################
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
#include "m-serial-json.h"
|
||||
#include "m-tuple.h"
|
||||
#include "m-string.h"
|
||||
|
||||
TUPLE_DEF2(entry,
|
||||
(x, float),
|
||||
(y, float),
|
||||
(name, string_t) )
|
||||
|
||||
void save(FILE *f, const entry_t ent)
|
||||
{
|
||||
m_serial_write_t serial;
|
||||
m_serial_json_write_init(serial, f);
|
||||
entry_out_serial(serial, ent);
|
||||
m_serial_json_write_clear(serial);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user