View Single Post
Old 15 October 2021, 17:17   #1306
bebbo
bye
 
Join Date: Jun 2016
Location: Some / Where
Posts: 680
Quote:
Originally Posted by BSzili View Post
I attached a small(ish) test case for the inline assembly issue. This is part of the cache system from Build. I basically took a bunch of external assembly functions and turned them into GCC inlines. While the original ones work fine, these inlines don't. Maybe I made a mistake when I converted the functions to inlines, but I can't o figure out what I double checked the input/output/clobber lists, and they looked OK.

I included generic C versions of the offending functions, if you define NOASM they will be used. You can build the example program with:
m68k-amigaos-gcc -Wall -noixemul -m68040  -O2 -fomit-frame-pointer -fno-strict-aliasing -o cachetest cachetest.c

sorry, but I don't see the reason for using such inline assembly with gcc.
the NOASM functions aren't worse. With loop unrolling it should be even faster.


https://franke.ms/cex/z/aTjM31
bebbo is offline  
 
Page generated in 0.05752 seconds with 11 queries