[MPlayer-dev-eng] [PATCH] compiling with Intel C
dmantipov at yandex.ru
Wed Jan 24 16:19:39 CET 2007
an attached patch proposes the bits needed for the first successful :-) compilation
of svn-22004 with Intel C 9.1.046. It compiles and plays a few movies found on my hard
drive, but it's highly experimental. Libavcodec bits are also included. (Yes, I know
it should be done separately).
As the most of developers knows, there is a few issues with Intel C vs. GCC compatibility.
The most important ones are:
1. Intel C can't handle inline assembly statements with a large number of operands.
GCC has a built-in limit of 30 operands (as for 4.1.1), and Intel C probably has
smaller limit and, in general, handles inline assembly with another way.
2. Intel C doesn't understand __attribute__((used)) and just not emit static variables
which are used only in inline assembly code and referenced by their names instead
of specifying them as operands for 'asm volatile ()' statements.
I've tried to attack 1) by rewriting a inline assembly to fit into Intel C limits and
2) by specifying __attribute__((section (".data"))) for the corresponding variables.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the MPlayer-dev-eng