Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test case for PA structure_size_boundary and partial demo of cross compilation, at least to assembly You can see the resulting struct sizes in the assembly. The other part of the cross-use is m3cc/src/buildmany.sh and a config file change that lets you specify cc/as/ld on the cm3 command line, or at least as.
- Loading branch information
Showing
4 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
(* Test the correctness of Structure_size_boundary = 16 for PA32_HPUX, PA64_HPUX. | ||
I think it is wrong. *) | ||
|
||
MODULE Main; | ||
|
||
TYPE T1 = RECORD a: CHAR END; | ||
|
||
PROCEDURE F1(<*UNUSED*>a:INTEGER) = | ||
BEGIN | ||
END F1; | ||
|
||
PROCEDURE F2() = | ||
BEGIN | ||
F1(16_123); | ||
F1(123); | ||
F1(BYTESIZE(T1)); | ||
END F2; | ||
|
||
BEGIN | ||
F2(); | ||
END Main. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
% Test the correctness of Structure_size_boundary = 16 for PA32_HPUX, PA64_HPUX. | ||
% I think it is wrong. | ||
|
||
m3back_optimize = "" | ||
implementation("Main") | ||
build_standalone() | ||
include ("../../Test.common") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include(ROOT & "/m3overrides") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
|
||
set -ex | ||
/cm3/bin/cm3 \ | ||
-DROOT=/dev2/cm3 \ | ||
-DTARGET=PA64_HPUX \ | ||
-DSYSTEM_AS=$HOME/hppa64-hpux11/bin/hppa64-hpux11-as \ | ||
-keep \ | ||
-boot \ | ||
-x \ | ||
$@ |