RE: Problem with pic16l_setled
From: Norbert Koch (NKoch_at_demig.de)
Date: 07/27/05
- Previous message: Rink Springer: "Re: Problem with pic16l_setled"
- In reply to: Rink Springer: "Re: Problem with pic16l_setled"
- Next in thread: Uwe Doering: "Re: Problem with pic16l_setled"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: "Rink Springer" <rink@stack.nl>, "Ludvig Strigeus" <strigeus@gmail.com> Date: Wed, 27 Jul 2005 16:09:51 +0200
> You see, in C, I call the function like this (for example):
>
> void pic16l_setled(unsigned int val);
> pic16l_setled (0x1234);
>
> And it gets assembled to:
>
> pushl $0x1234
> call pic16l_setled
>
> But it should be assembled to:
>
> pushl $0x1234
> call pic16l_setled
> add $4,%esp /* ditch the parameter */
Usually gcc collects stack cleanups.
See -fno-defer-pop.
Norbert
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
- Previous message: Rink Springer: "Re: Problem with pic16l_setled"
- In reply to: Rink Springer: "Re: Problem with pic16l_setled"
- Next in thread: Uwe Doering: "Re: Problem with pic16l_setled"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]