Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

JPEG 2000 / XL viewer for DOS (Users)

posted by RayeR Homepage, CZ, 12.09.2023, 13:32

> With the change of memalign to 8 in MALLOC of the
> libc I was able to successfully (cross)compile version 2.5 also. My
> compiled executables now work well without crashes.

Yes it works some way but may not be correct solution. In this case the alignment may be just for some performance reason but somewhere else it really must be 16 (e.g. SSE?) and then 8 would not be OK. So use rather _mm_alloc - well' I didn't check the pointers if they are really aligned but should be, it seems use malloc, align the pointer by mask and store original pointer for free () call.

---
DOS gives me freedom to unlimited HW access.

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 81 users online (0 registered, 81 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum