mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-06 05:12:26 +00:00
Add SYSTEM_INT64 and make tests name independent.
This commit is contained in:
parent
f5e97fdd87
commit
a39eefaf18
10 changed files with 14 additions and 12 deletions
|
|
@ -292,9 +292,8 @@ MODULE OPV; (* J. Templ 16.2.95 / 3.7.96
|
||||||
|
|
||||||
PROCEDURE SizeCast(size: LONGINT);
|
PROCEDURE SizeCast(size: LONGINT);
|
||||||
BEGIN
|
BEGIN
|
||||||
IF size <= OPM.SIntSize THEN OPM.WriteString("(int)") (* TODO: int for temporary source comparison only. *)
|
IF size <= 4 THEN OPM.WriteString("(int)")
|
||||||
ELSIF size <= OPM.IntSize THEN OPM.WriteString("(int)") (* TODO: int for temporary source comparison only. *)
|
ELSE OPM.WriteString("(SYSTEM_INT64)")
|
||||||
ELSE OPM.WriteString("(LONGINT)")
|
|
||||||
END
|
END
|
||||||
END SizeCast;
|
END SizeCast;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,8 @@
|
||||||
#include <string.h> // For memcpy ...
|
#include <string.h> // For memcpy ...
|
||||||
#include <stdint.h> // For uintptr_t ...
|
#include <stdint.h> // For uintptr_t ...
|
||||||
|
|
||||||
|
typedef long SYSTEM_INT64;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
// Building for Windows platform with either mingw under cygwin, or the MS C compiler
|
// Building for Windows platform with either mingw under cygwin, or the MS C compiler
|
||||||
|
|
@ -20,6 +22,7 @@
|
||||||
typedef unsigned int uintptr_t;
|
typedef unsigned int uintptr_t;
|
||||||
#endif /* _WIN64 */
|
#endif /* _WIN64 */
|
||||||
|
|
||||||
|
typedef long long SYSTEM_INT64
|
||||||
typedef unsigned int uint32_t;
|
typedef unsigned int uint32_t;
|
||||||
void * __cdecl memcpy(void *dest, const void *source, size_t size);
|
void * __cdecl memcpy(void *dest, const void *source, size_t size);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
. ../testenv.sh
|
. ../testenv.sh
|
||||||
voc aa.mod -m
|
$OBECOMP aa.mod -m
|
||||||
./aa >result
|
./aa >result
|
||||||
. ../testresult.sh
|
. ../testresult.sh
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
. ../testenv.sh
|
. ../testenv.sh
|
||||||
voc hello.mod -m
|
$OBECOMP hello.mod -m
|
||||||
./hello >result
|
./hello >result
|
||||||
. ../testresult.sh
|
. ../testresult.sh
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
. ../testenv.sh
|
. ../testenv.sh
|
||||||
# Generate mixed source and assembly code listing
|
# Generate mixed source and assembly code listing
|
||||||
voc IntSyntax.mod -m >result
|
$OBECOMP IntSyntax.mod -m >result
|
||||||
. ../testresult.sh
|
. ../testresult.sh
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
. ../testenv.sh
|
. ../testenv.sh
|
||||||
# Generate mixed source and assembly code listing
|
# Generate mixed source and assembly code listing
|
||||||
voc TestLanguage.mod -m
|
$OBECOMP TestLanguage.mod -m
|
||||||
./TestLanguage >result
|
./TestLanguage >result
|
||||||
. ../testresult.sh
|
. ../testresult.sh
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
. ../testenv.sh
|
. ../testenv.sh
|
||||||
# Generate mixed source and assembly code listing
|
# Generate mixed source and assembly code listing
|
||||||
voc TestLibrary.mod -m
|
$OBECOMP TestLibrary.mod -m
|
||||||
./TestLibrary >result
|
./TestLibrary >result
|
||||||
. ../testresult.sh
|
. ../testresult.sh
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
. ../testenv.sh
|
. ../testenv.sh
|
||||||
voc LSS.Mod LSB.Mod LSC.Mod LSV.Mod lola.Mod -m
|
$OBECOMP LSS.Mod LSB.Mod LSC.Mod LSV.Mod lola.Mod -m
|
||||||
./Lola RISC5.Lola result
|
./Lola RISC5.Lola result
|
||||||
. ../testresult.sh
|
. ../testresult.sh
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
. ../testenv.sh
|
. ../testenv.sh
|
||||||
voc signal.mod -m
|
$OBECOMP signal.mod -m
|
||||||
./SignalTest x &
|
./SignalTest x &
|
||||||
sleep 1
|
sleep 1
|
||||||
kill -2 $!
|
kill -2 $!
|
||||||
|
|
|
||||||
|
|
@ -378,7 +378,7 @@ sourcechanges:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
RUNTEST = COMPILER=$(COMPILER) FLAVOUR=$(FLAVOUR) sh ./test.sh "$(INSTALLDIR)"
|
RUNTEST = COMPILER=$(COMPILER) OBECOMP=$(VISHAP) FLAVOUR=$(FLAVOUR) sh ./test.sh "$(INSTALLDIR)"
|
||||||
|
|
||||||
confidence:
|
confidence:
|
||||||
@printf "\n\n--- Confidence tests ---\n\n"
|
@printf "\n\n--- Confidence tests ---\n\n"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue