Re: Building my own 'freestanding' start-up and library
- From: Alex Buell <alex.buell@xxxxxxxxxxxxx>
- Date: Tue, 21 Oct 2008 20:52:25 +0100
On Tue, 21 Oct 2008 11:19:46 -0700, I waved a wand and this message
magically appears in front of Nate Eldredge:
Botheration, I hadn't thought to debug __write! Thank you very much
for taking the trouble to track down the problem for me, it's much
appreciated.
No problem, it was interesting.
I fixed it this morning; once I knew that it was clobbering ebx, by
adding some prologue and epilogue code, and I also realised that if
you push more values onto the stack, you need to add the number of
bytes so you can access the variables that has also been pushed onto
the stack by the caller. It's quite fundamental and I had neglected to
take this into account!
Obviously I need to disable this behaviour in GCC, thanks once
again.
Why? I don't see how it can cause a problem, and it may help in terms
of performance.
No matter, I realised after this that I wouldn't need to.
Thanks
--
http://www.munted.org.uk
Fearsome grindings.
.
- References:
- Building my own 'freestanding' start-up and library
- From: Alex Buell
- Re: Building my own 'freestanding' start-up and library
- From: Nate Eldredge
- Re: Building my own 'freestanding' start-up and library
- From: Alex Buell
- Re: Building my own 'freestanding' start-up and library
- From: Nate Eldredge
- Re: Building my own 'freestanding' start-up and library
- From: Alex Buell
- Re: Building my own 'freestanding' start-up and library
- From: Nate Eldredge
- Re: Building my own 'freestanding' start-up and library
- From: Alex Buell
- Re: Building my own 'freestanding' start-up and library
- From: Nate Eldredge
- Re: Building my own 'freestanding' start-up and library
- From: Alex Buell
- Re: Building my own 'freestanding' start-up and library
- From: Nate Eldredge
- Building my own 'freestanding' start-up and library
- Prev by Date: Re: Call Java functions in a C DLL
- Next by Date: Re: print chinese in console
- Previous by thread: Re: Building my own 'freestanding' start-up and library
- Next by thread: Re: Building my own 'freestanding' start-up and library
- Index(es):
Relevant Pages
|