GCJ Compiler - How to Compile?


i've done programming in java. problem java strength; it's not compiled. great because makes cross-compatible without developer having compile every operating system. slows down execution of java programs. i'd able compile them binary. found out there's compiler called gcj can compile java programs os x binary.

however, don't know how compile it. found instructions on gcj website, weren't helpful.

how compile gcj in os x?
 

please provide more details.

first:
os version?
java version?
mac model? capabilities: ram, ssd/hd?

second:
program doing that's slow?


in experience, there @ least 3 main contributors, , don't appear in every program.
1. startup latency.
2. computational constraints.
3. gui: awt, swing, or swt

startup latency significant factor. takes lot of jar files, many many classes actively being used, before becomes noticeable. startup latency can appear when ram small caching, or spinning hd slow.

computational constraints can appear number of reasons, beyond doing gazillion calculations. poor algorithm choice, thrashing due gc, etc.

have several command-line java tools wrote use every day embedded systems work. more fast enough launched , run @ every build, @ least 100 times in day. when performance measured, slowness attributed file-system, since operate on files, rather attributable byte-codes, jitc, startup latency, or computational constraints.

there's gui. it's slow on os x. can try every trick can find, , still won't make big difference: still sluggish. if program using gui @ all, or off-screen graphics, it's slow reason, not because java compiled byte-codes.

also, make sure whatever gui plan use gcj performant, , supports need:
https://en.wikipedia.org/wiki/gnu_compiler_for_java


finally, else did try searching for?
googled mac os gcj , came this:
http://sourceforge.net/projects/gcj-osx-intel/
 


Forums Macs Mac Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

Comments

Popular posts from this blog

Sean Penn, "Chapo Guzman", and Rolling Stone

Subler - What is "Fix Audio Fallbacks"?

Help please Strange logs