AFAIK fpc does not differ that much in speed compared C on numerous
points, there are benchmarks out there. So my suggestion would be to try
to optimize your code as much as possible (in my experience if you look
very critical and do a lot of tests you will see you can increase speed
significantly). If that does not help you can try asembler that you can
inline in the pascal code (platform specific, but thats the reason why its
optimal).
C code can easily used within pascal written programs by using libraries.
Check the wiki for more information.
There are also pascal math libraries which you may want to checkout:
fpmath and JediMath, but these are generic so not highly optimized.

Darius


> Hello everyone,
>
> I know this is probably the wrong list to ask such thing but as I am not
> on the fpc list and many people on this list know alot more about coding
> than I do I just ask here.
> I exclusively do (real time) graphics programming (on a hobby level) and
> for most stuff freepascal is fast enough. But now I have come to a point
> where I'd really like to have some faster vector/matrix math.
> So I ask you guys if anybody knows of a way to achieve this. I have read
> that SSE/3DNow are the way to go but AFAIK there is no support for that in
> fpc.
> I don't know much about interaction with other languages but would it be
> possible to use/write a SSE/3DNow math lib in C and then use this for my
> calculations. (I hate C but more speed is more speed and if it is only the
> real low level stuff, I think I can deal with it).
> I am open for any suggestion esp. the ones not involving any C coding.
>
> thanks for any help
>
> Satan
>
> _________________________________________________________________
>      To unsubscribe: mail [EMAIL PROTECTED] with
>                 "unsubscribe" as the Subject
>    archives at http://www.lazarus.freepascal.org/mailarchives
>


_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to