RosettaCodeData/Task/Host-introspection/Pascal/host-introspection.pascal
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07:00

9 lines
316 B
Text

program HostIntrospection(output);
begin
writeln('Pointer size: ', SizeOf(Pointer), ' byte, i.e. ', SizeOf(Pointer)*8, ' bit.');
{ NtoBE converts from native endianess to big endianess }
if 23453 = NtoBE(23453) then
writeln('This host is big endian.')
else
writeln('This host is little endian.');
end.