Re: [AD] C/Asm integration (was [AD] Improvement on alphablending...) |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: "Allegro Conductors" <conductors@xxxxxxxxxx>
- Subject: Re: [AD] C/Asm integration (was [AD] Improvement on alphablending...)
- From: "Matthew Smith" <matt@xxxxxxxxxx>
- Date: Sun, 5 Aug 2001 00:19:47 +0100
Evert schreef
> >GCC always has cs=ds=es(=0?), if you are using another compiler (i.e.
MSVC)
> >it is safe to use assembler (i.e. 386). Is this an incomplete solution?
>
> I don't think you should make that kind of assumption; if it ever changes,
> then the code will be broken.
>
Yes I can see that, but DJ and Eli insist that GCC is a 'flat model'
compiler only, and will remain so (although the 4Gb limit will be a nuisance
soon)
I don't understand why the frame buffer needs a new segment descriptor with
this model, unless the memory management is tied to the PCI/AGP bus somehow,
or is this just the way the Allegro drivers are written?
If I understood this better I could help a lot more with the video drivers.
The only way I can think of to pass %es into a C function is as a short, but
then it wouldn't
be a pure C function because it is processor specific. ?!
Matt