langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
9
Task/Host-introspection/Pascal/host-introspection.pascal
Normal file
9
Task/Host-introspection/Pascal/host-introspection.pascal
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