[fpc-devel] libc translations
Boian Mitov
mitov at mitov.com
Sun Aug 10 11:33:33 CEST 2008
Thank you guys for the detailed explanations. I think it will help me a lot
to understand the infrastructure. I am doing in on stages. First I will
implement it in my code and test it and then will extract it and put it in
suitable unit for you. I will study the units to see a good fit for it.
What I need is 1 nS units repeating timer. If I am not mistaken this can be
achieved only with the hrtimers, but I may be wrong. If I can come up with a
better more platform independent Unix approach, it will be even better.
With best regards,
Boian Mitov
--------------------------------------------------------------------
Mitov Software
http://www.mitov.com
--------------------------------------------------------------------
----- Original Message -----
From: "Daniƫl Mantione" <daniel.mantione at freepascal.org>
To: "FPC developers' list" <fpc-devel at lists.freepascal.org>
Sent: Sunday, August 10, 2008 2:19 AM
Subject: Re: [fpc-devel] libc translations
>
>
> Op Sun, 10 Aug 2008, schreef Boian Mitov:
>
> In Free Pascal we have spread the functionality over multiple units:
> - "baseunix" contains Unix system calls that are portable accross Unixes.
> - "unix" contains generally available Unix routines that are portable
> accross Unixes:
> - "linux" contains Linux specific system calls.
>
> If the HR timers are not part of any standard, implementing them in
> "linux" seems the best approach to me.
> Timing on Unix is often done using alarm/setitimer system calls,
> gettimeofday, etc. I don't know wether these satisfy your needs.
More information about the fpc-devel
mailing list