Fix a empty file detection

Change-Id: I318a576f41ee917d23103c0ad3fb271fca63bc3e
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
adding a debug/optimized simulator

Change-Id: I92fb4e6a0b8f85572e614d49a33a27bdb157896a
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
API revisited and improved

Change-Id: If78aecaf33763fac3d569588117d4ba1cfc3c852
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>