Hmmm. When you say "it works perfect" - what do you mean? I'm asking because I just ran your code via the IDE (having first created "test.bb") and it simply ran before saying "Program has ended".
On your system when you run compiler.bb via the IDE is source file "test.bb" compiled into program "test.exe"? Coz on my system it wasn't...
On your system when you run compiler.bb via the IDE is source file "test.bb" compiled into program "test.exe"? Coz on my system it wasn't...