Gcj seems interesting to say
Http://www.ibm.com/developerworks/cn/java/j-native/
After several days, I finally figured out how to use it.
Let's talk about it.
1. Download gcj
To http://www.thisiscool.com/gcc_mingw.htm
Ii. Decompress
For example: C:/gcj/, you can see a bin directory.
Add the C:/gcj // bin directory to your system environment variable path.
Gcj -- help. You can see the help.
You can see the current version of gcj-v.
III. The focus of this article is to solve
1. display Chinese questions
2. Lose Weight
Iv. display Chinese Characters
System. Out. println ("Welcome to gcj! ");
I downloaded the 4.2 version above.
Only ???? Gcj
The solution is to upgrade your gcc
Main Site:
Http://mingw.sourceforge.net/download.shtml
The latest version is available.
However, the unpackaged binary package can be used on the mingw main site,
You need to download too many packages for your own configuration.
Google, we found that mingw has been packaged.
TDM/mingw and nuwen.net mingw distro
The home page is
Http://www.tdragon.net/recentgcc/
Http://nuwen.net/mingw.html
I downloaded mingw distro.
Decompress the package to overwrite the directory c:/gcj /.
Try it now. Can be displayed normally
Welcome to gcj!
Digress upgrade your Dev-C ++
Add a path to "binary" under "tool-> compiler options-> directory"
C:/gcj/bin (this step is omitted if the system environment variable path has just been configured)
Delete all paths in "library", "C contains files", and "c ++ contains files" (this is the dev-C ++ built-in library)
Set "tool-> compiler options->Program"The make.exe in is changed to mingw32-make.exe.
5. Weight Loss
Look at the generated
Hellogcj.exe file, but this file is huge, there are more than 80 m, a large pear.
Give him Weight Loss Reduction
Run
Strip hellogcj.exe
(Strip is in the bin directory of gcj)
13 MB
Then use the EXE compression tool.
If you have just upgraded GCC, UPX cannot be used. You can change to another version, such as ASPack.
Only 5 MB.
Last
This is the topic for native compilation.
Http://blog.csdn.net/luozhuang/archive/2010/05/23/5618751.aspx
This articleArticleLaunch me
I was surprised. I thought there were few people doing this topic.
Someone on the msdn Forum suggested why. Net does not compile locally.
Later let's look at the reply
The original master, such as cloud, said that there is no technical content
Some people say that obfuscation can make 99% people give up ....
I think since csdn has a lot of cool people, let's collect food.
If you have any questions, ask them.
Answer a lot of replies first
The article cannot be intended for beginners
It is impossible to explain how to add the directory to your system environment variable path.
Or how to use gcj to compile hellogcj
This is something your teacher or related documents should have written.
Knowledge is always a link. If you miss something, others' articles may be written to the cloud.
You need to study hard.
For example
Ring0 and ring3 I have read the following three books to understand.
1 Operating System Concepts
2. Computer Structure
3 Microsoft Windows Internals
Without these foundations, you cannot understand what ring0 and ring3 are.
I started the program in 2002 and now
I would like to explain whether I have been exposed to any technology for two days a day or an article.
So I can only say sorry to you.
This is what our teacher told us to learn.