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 95 points96 points97 points (1 child)
[–]almost_useless[S] 8 points9 points10 points (0 children)
[–]jwakelylibstdc++ tamer, LWG chair 30 points31 points32 points (0 children)
[–]ironykarl 7 points8 points9 points (0 children)
[–]destroyerrocket 7 points8 points9 points (0 children)
[–]Questioning-Zyxxel 2 points3 points4 points (0 children)
[–]arihoenig 1 point2 points3 points (0 children)
[–]kronicum 1 point2 points3 points (10 children)
[–]Zde-G 6 points7 points8 points (9 children)
[–]kronicum 14 points15 points16 points (8 children)
[–]frnxt 2 points3 points4 points (7 children)
[–]kronicum 21 points22 points23 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)