This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
no mul/div instruction
- From: Kunal Parmar <kunalparmar at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 22 Apr 2008 12:46:02 -0400
- Subject: no mul/div instruction
Hi all,
I am porting GCC to a new 16 bit RISC architecture which does not have
multiplication and division instructions. I figured that I have to provide
emulation routines for the multiplication and division which will be
inserted into libgcc2.a. But I am confused about which versions of these
routines to provide i.e. do I provide __mulsi3 or __mulhi3 or both.
Thanks in advance,
Kunal