Rev 8733 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8733 | Rev 9234 | ||
---|---|---|---|
Line 18... | Line 18... | ||
18 | #include "interpret.h" |
18 | #include "interpret.h" |
19 | #include "formatter.h" |
19 | #include "formatter.h" |
20 | #include "generatec.h" |
20 | #include "generatec.h" |
Line 21... | Line 21... | ||
21 | 21 | ||
- | 22 | #ifdef _KOLIBRI |
|
22 | #ifdef _KOLIBRI |
23 | #include |
23 | #define KTCC_BIN "/kolibrios/develop/tcc/tcc" |
24 | #define KTCC_BIN "/kolibrios/develop/tcc/tcc" |
24 | #define KTCC_FLAGS "%s -o %s -lck" |
25 | #define KTCC_FLAGS "-nobss %s -o %s -ltcc -lc.obj" |
Line 25... | Line 26... | ||
25 | #endif |
26 | #endif |
26 | 27 | ||
27 | /* static variables */ |
28 | /* static variables */ |
Line 298... | Line 299... | ||
298 | /* run the compiler command */ |
299 | /* run the compiler command */ |
299 | system (final_command); |
300 | system (final_command); |
300 | #else |
301 | #else |
301 | sprintf(final_command, KTCC_FLAGS, c_filename, exe_filename); |
302 | sprintf(final_command, KTCC_FLAGS, c_filename, exe_filename); |
302 | if(!_ksys_exec(KTCC_BIN, final_command)){ |
303 | if(!_ksys_exec(KTCC_BIN, final_command)){ |
303 | printf(final_command); |
- | |
304 | }else{ |
- | |
305 | printf("Bad command: %s %s\n", KTCC_BIN, final_command); |
304 | printf("Bad command: %s %s\n", KTCC_BIN, final_command); |
306 | exit(0); |
305 | exit(0); |
307 | } |
306 | } |
308 | #endif |
307 | #endif |
309 | } |
308 | } |
Line 310... | Line -... | ||
310 | - | ||
311 | 309 | ||
312 | /* |
310 | /* |
313 | * Top Level Routine |
311 | * Top Level Routine |