Re: C / asm / long ints
- From: "Nishu" <naresh.attri@xxxxxxxxx>
- Date: 26 Oct 2006 22:00:58 -0700
fermineutron wrote:
A while back i tried to calculate factorials of large numbers using
arrays in C, the array encoded integer arithemetic that i wrote in C
was very slow, it would take almost a second to multiply 2 array
encoded integers. resently i looked at large precision libraries for C,
in particular GMP but i was unable to get it to run with my compiler,
aperantly some header files were not found. I was curious what is the
best way to interface C and asm so that i could write simmilar library
in asm and use it in C.
Some compilers support embedded asm but it is waste of time unless you
understand the underlined processor architecture, its related
instruction set, how your compiler generates the corresponding asm for
your optimized C routine and so on. It is big time investment.
Relatively, less time consuming method with appreciable return is to
optimize the C routine itself; and there are various techinques to do
so which are easily available on the net and also in some previous
threads in this group.
-Nishu
.
- Follow-Ups:
- Re: C / asm / long ints
- From: Chris Thomasson
- Re: C / asm / long ints
- References:
- C / asm / long ints
- From: fermineutron
- C / asm / long ints
- Prev by Date: Re: Debugging C vs debugging C++
- Next by Date: Re: C / asm / long ints
- Previous by thread: Re: C / asm / long ints
- Next by thread: Re: C / asm / long ints
- Index(es):
Relevant Pages
|