diff options
author | Stefan Radomski <sradomski@mintwerk.de> | 2016-01-29 10:26:06 (GMT) |
---|---|---|
committer | Stefan Radomski <sradomski@mintwerk.de> | 2016-01-29 10:26:06 (GMT) |
commit | 566b465fa98a1b63671e3a91a278032b98c06359 (patch) | |
tree | fc077226fedc0f42727e330ac6514c642643c5a2 /test/w3c | |
parent | 81799f6f7d667e11ba0a30875046ca3dc0c63fe7 (diff) | |
download | uscxml-566b465fa98a1b63671e3a91a278032b98c06359.zip uscxml-566b465fa98a1b63671e3a91a278032b98c06359.tar.gz uscxml-566b465fa98a1b63671e3a91a278032b98c06359.tar.bz2 |
Prepared the C transformation as a VHDL base class
Diffstat (limited to 'test/w3c')
-rw-r--r-- | test/w3c/run_generated_test.cmake | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/test/w3c/run_generated_test.cmake b/test/w3c/run_generated_test.cmake index 868e111..334fffb 100644 --- a/test/w3c/run_generated_test.cmake +++ b/test/w3c/run_generated_test.cmake @@ -22,35 +22,35 @@ if (${TARGETLANG} STREQUAL "vhdl") elseif (${TARGETLANG} STREQUAL "c") - set(COMPILE_CMD_OBJ - "-c" "${OUTDIR}/${TEST_FILE_NAME}.machine.c" - "-o" "${OUTDIR}/${TEST_FILE_NAME}.machine.c.o" - "-Ofast" "-ansi" "-m16") - - message(STATUS "${CC_BIN} ${COMPILE_CMD_OBJ}") - execute_process( - COMMAND time -p ${CC_BIN} ${COMPILE_CMD_OBJ} - WORKING_DIRECTORY ${OUTDIR} RESULT_VARIABLE CMD_RESULT) - if(CMD_RESULT) - message(FATAL_ERROR "Error running gcc ${CC_BIN}: ${CMD_RESULT}") - endif() - file (SIZE "${OUTDIR}/${TEST_FILE_NAME}.machine.c.o" BINARY_SIZE) - message("Size of compiled unit optimized for speed: ${BINARY_SIZE}") - - set(COMPILE_CMD_OBJ - "-c" "${OUTDIR}/${TEST_FILE_NAME}.machine.c" - "-o" "${OUTDIR}/${TEST_FILE_NAME}.machine.c.o" - "-Os" "-ansi" "-m16") - - message(STATUS "${CC_BIN} ${COMPILE_CMD_OBJ}") - execute_process( - COMMAND time -p ${CC_BIN} ${COMPILE_CMD_OBJ} - WORKING_DIRECTORY ${OUTDIR} RESULT_VARIABLE CMD_RESULT) - if(CMD_RESULT) - message(FATAL_ERROR "Error running gcc ${CC_BIN}: ${CMD_RESULT}") - endif() - file (SIZE "${OUTDIR}/${TEST_FILE_NAME}.machine.c.o" BINARY_SIZE) - message("Size of compiled unit optimized for size: ${BINARY_SIZE}") + # set(COMPILE_CMD_OBJ + # "-c" "${OUTDIR}/${TEST_FILE_NAME}.machine.c" + # "-o" "${OUTDIR}/${TEST_FILE_NAME}.machine.c.o" + # "-Ofast" "-ansi" "-m16") + # + # message(STATUS "${CC_BIN} ${COMPILE_CMD_OBJ}") + # execute_process( + # COMMAND time -p ${CC_BIN} ${COMPILE_CMD_OBJ} + # WORKING_DIRECTORY ${OUTDIR} RESULT_VARIABLE CMD_RESULT) + # if(CMD_RESULT) + # message(FATAL_ERROR "Error running gcc ${CC_BIN}: ${CMD_RESULT}") + # endif() + # file (SIZE "${OUTDIR}/${TEST_FILE_NAME}.machine.c.o" BINARY_SIZE) + # message("Size of compiled unit optimized for speed: ${BINARY_SIZE}") + # + # set(COMPILE_CMD_OBJ + # "-c" "${OUTDIR}/${TEST_FILE_NAME}.machine.c" + # "-o" "${OUTDIR}/${TEST_FILE_NAME}.machine.c.o" + # "-Os" "-ansi" "-m16") + # + # message(STATUS "${CC_BIN} ${COMPILE_CMD_OBJ}") + # execute_process( + # COMMAND time -p ${CC_BIN} ${COMPILE_CMD_OBJ} + # WORKING_DIRECTORY ${OUTDIR} RESULT_VARIABLE CMD_RESULT) + # if(CMD_RESULT) + # message(FATAL_ERROR "Error running gcc ${CC_BIN}: ${CMD_RESULT}") + # endif() + # file (SIZE "${OUTDIR}/${TEST_FILE_NAME}.machine.c.o" BINARY_SIZE) + # message("Size of compiled unit optimized for size: ${BINARY_SIZE}") set(COMPILE_CMD_BIN "-o" "${OUTDIR}/${TEST_FILE_NAME}" |