> gcc -Os -c re.c
> size re.o
text data bss dec hex filename
2319 0 544 2863 b2f re.o
For ARM/Thumb using GCC 4.8.1 it's around 1.5kb code and less RAM :
> arm-none-eabi-gcc -Os -mthumb -c re.c
> size re.o
text data bss dec hex filename
1418 0 280 1698 6a2 re.o
For 8-bit AVR using AVR-GCC 4.8.1 it's around 2kb code and less RAM :
> avr-gcc -Os -c re.c
> size re.o
text data bss dec hex filename
2128 0 130 2258 8d2 re.o
API
This is the public / exported API:
/* Typedef'd pointer to hide implementation details. */
typedef struct regex_t* re_t;
/* Compiles regex string pattern to a regex_t-array. */
re_t re_compile(const char* pattern);
/* Finds matches of the compiled pattern inside text. */
int re_matchp(re_t pattern, const char* text);</