On Thu, Jun 20, 2019 at 3:48 PM valerij zaporogeci <vlrzprgts@xxxxxxxxx> wrote: > Hi. I want to build gcc, supporting PE for MIPS and PPC, that it > understood declspec(dllimport) and export. Please tell me is this > feasible? If so, could you direct me a little what I should start > with? Only the ARM, mcore, and x86 ports support dllimport. PE is a Microsoft specific object file format only supported for MS targets like wince, but mips-wince-pe and powerpcle-wince-pe are both long obsolete, and it looks like arm-wince-pe is obsolete too. I'm a little surprised to find PE support for mcore; I don't know why that is there. x86 pe should work, but it perhaps only works for cygwin/mingw. If you look at old binutils and gcc versions you might be able to find working mips-wince-pe or powerpcle-wince-pe support, but this is unlikely to be easy to use or very useful. Jim