Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

x264 0.118 DOS port (Announce)

posted by Khusraw E-mail, Bucharest, Romania, 25.10.2011, 15:22
(edited by Khusraw on 25.10.2011, 15:48)

> I think that if I use SSE optimalization for GCC it would take care about
> it but the root of evil is in assebler files that are out of gcc control.
> If I disable HAVE_MMX in config but leave sse opts in makefile it works. It
> probably only not use assembler routines but still may use sse for other
> C-code. I didn't checked listing but binary is different size when use sse
> and when use mmx.

I was referring to the "untouched" assembler files, DJGPP's COFF sections are aligned to 16 bytes by default, so if you have the SSE data at the beginning of a section, it should work (for me it worked). IIRC HAVE_MMX failed because of the memalign problem I describe below. Personally I used #define memalign(a,b) memalign(b,a), and it finally worked.

> If I would want to use SSE in my code and need to have aligned memory I
> think it could be possible to use valloc() that should allocate
> page-aligned blocks of memory...

You can also use DJGPP's memalign, but it takes reversed parameters comparing to the one from Linux.

---
Glory to God for all things

 

Complete thread:

Back to the forum
Board view  Mix view
22778 Postings in 2122 Threads, 402 registered users (0 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum