I have larger programs that compile much more quickly. \thisiscool-gcc-3.4\gcc-3.4\bin\gcj test.jar -o test -- main=com.cyviz.xyzmodem.StackImpl Also there is an issue with the app, it runs fine w/JRE, but does not run when compile w/GCJ: Exception in thread "main" java.lang.Error: US-ASCII (java.lang.ClassNotFoundExc eption: gnu.gcj.convert.Output_ASCII not found in [file:.\, core:/]) at 0x0097600e (Unknown Source) at 0x00976502 (Unknown Source) at 0x0097d2b4 (Unknown Source) at 0x00938027 (Unknown Source) at 0x009393d3 (Unknown Source) at 0x0093904e (Unknown Source) at 0x00938fac (Unknown Source) at 0x00938f55 (Unknown Source) at 0x00928177 (Unknown Source) at 0x009a8d6e (Unknown Source) at 0x009a2d50 (Unknown Source) at 0x00974727 (Unknown Source) at 0x00974807 (Unknown Source) at 0x004012ea (Unknown Source) at 0x00401209 (Unknown Source) at 0x00401234 (Unknown Source) at 0x7c5987e3 (Unknown Source)
Created attachment 5223 [details] Example file
I can confirm this but it looks like there is a large number of code aka the middle-end is slow part. The other problem is static linking does not work correctly there is a PR for that.
On the tree-ssa the problem is cause a lot by the java front-end (but I have an older version of the tree-ssa aka without the fix for bytecode compiling).
Back in the middle-end on the tree-ssa. Speeding up can happen by inlining rtx_alloc_stat for -O0 speedup. For -O1 and above, inlining craph_edge would help a lot. Putting these two functions in the headers and then declaring them as inline will help.
dominator optimization: 17.89 ( 7%) usr 0.88 ( 4%) sys 21.48 ( 6%) wall expand : 13.68 ( 5%) usr 0.81 ( 3%) sys 18.65 ( 6%) wall CSE : 53.15 (20%) usr 0.59 ( 2%) sys 60.06 (18%) wall CSE 2 : 36.92 (14%) usr 0.18 ( 1%) sys 41.34 (12%) wall tree SSA other : 6.88 ( 3%) usr 5.10 (21%) sys 13.43 ( 4%) wall tree PRE : 5.38 ( 2%) usr 0.41 ( 2%) sys 6.24 ( 2%) wall PRE : 5.43 ( 2%) usr 0.58 ( 2%) sys 6.47 ( 2%) wall CSE is just slow.
Gcj has been removed from GCC in the 7.0 cycle. Closing as Won't Fix.