Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
9
Task/Host-introspection/Pascal/host-introspection.pas
Normal file
9
Task/Host-introspection/Pascal/host-introspection.pas
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
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.
|
||||
Loading…
Add table
Add a link
Reference in a new issue