WS=2 ; PS=2
know_target=1
;;
-*) trap "rm -f ws.c ws.o a.out t$$" 0 1 2 3 15
+*) trap "rm -f ws.c ws.o a.out t__" 0 1 2 3 15
cat > ws.c <<'EOF'
#include <stdio.h>
main()
{
- printf("WS=%d ; PS=%d\n", sizeof(int), sizeof(char *));
+ printf("WS=%d ; PS=%d\n", (int)sizeof(int), (int)sizeof(char *));
exit(0);
}
EOF
: We can find out ourselves what the word-size and
: the pointer-size of the target machine is.
cc ws.c 2>/dev/null
- ./a.out > t$$
- . t$$
- rm -f t$$ a.out ws.[co]
+ ./a.out > t__
+ . ./t__
+ rm -f t__ a.out ws.[co]
else
: we will have to ask installer.
echo $E_FLAG "Please give the word-size of the target-machine (sizeof(int)) in bytes: [$WS] $E_SFX"