We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi all,
when I wrote a C code with division operation the compiler is generating some library calls.....when I tried to see the equivalent code for those function calls...I'm unable to reach there (may be because they arm library SW routines)...I cant use those SW routine calls...I can embed the equivalent code in my program( in assembly code). Form where I can get the Equivalent codes for division SW routines....I need codes for 32-bit/32-bit ,32-bit/16-bit & 16-bit/16-bit divisions....
Thanks in advance....
GCC would do the same thing on hardware w/o division support. The routines it uses are available in libgcc. More specifically, the routine 'divsi3' could be of interest as a reference point.
Some info on this can be found here: Libgcc - GNU Compiler Collection (GCC) Internals