cpetig / tflite_micro_compiler

generate tflite micro code which bypasses the interpreter (directly calls into kernels)
Apache License 2.0
77 stars 26 forks source link

alignment declaration is gnu compiler specific #45

Closed cpetig closed 4 years ago

cpetig commented 4 years ago

different compilers use different declspec to align data, support more than just gcc

cpetig commented 4 years ago

E.g.

ifdef TASKING

define ALIGN(X) __align(X)

elif defined _MSC_VER

define ALIGN(X) __declspec(align(X))

elif defined GNUC

define ALIGN(X) attribute((aligned(X)))

endif