Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Assembly Language v C and Embedded Development: !gcc for PIC16F84



> : josh@example.com; cat tmp/arithmetic.c
> int multiply(const int multiplier) {
>   int multiplicand = 12;
>   return multiplicand * multiplicand;
                          ^^^^^^^^^^^^

error, should be 

   return multiplicand * multiplier;

> .LFB0:
> 	.cfi_startproc
> 	movl	$144, %eax
> 	ret
> 	.cfi_endproc

becomes 

.LFB0:
        .cfi_startproc
        leal    (%rdi,%rdi,2), %edi
        leal    0(,%rdi,4), %eax
        ret
        .cfi_endproc

-- 
Nicolas LIMARE
http://nicolas.limare.net/                         pgp:0xFA423F4F

Attachment: signature.asc
Description: Digital signature


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links