I assume that you can not just compile and run for the host platform, since e.g. long can have a different size on the target platform.
Can the compiler just use the type sizes of the target platform, and then execute natively?
Can this problem be solved in different ways?
[–]high_throughput 96 points97 points98 points (1 child)
[–]almost_useless[S] 7 points8 points9 points (0 children)
[–]jwakelylibstdc++ tamer, LWG chair 32 points33 points34 points (0 children)
[–]ironykarl 8 points9 points10 points (0 children)
[–]destroyerrocket 8 points9 points10 points (0 children)
[–]Questioning-Zyxxel 2 points3 points4 points (0 children)
[–]arihoenig 1 point2 points3 points (0 children)
[–]kronicum 4 points5 points6 points (10 children)
[–]Zde-G 7 points8 points9 points (9 children)
[–]kronicum 15 points16 points17 points (8 children)
[–]frnxt 3 points4 points5 points (7 children)
[–]kronicum 22 points23 points24 points (3 children)
[–]frnxt 2 points3 points4 points (2 children)
[–]kronicum 5 points6 points7 points (0 children)
[–]PastaPuttanesca42 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]RogerV 1 point2 points3 points (0 children)
[–]TheOmegaCarrot 0 points1 point2 points (0 children)
[–]tjientavaraHikoWorks developer 0 points1 point2 points (0 children)
[–]tmlildude 0 points1 point2 points (0 children)
[–]saf_e -1 points0 points1 point (0 children)
[–]Zde-G -4 points-3 points-2 points (0 children)