The game project began to turn to Cocos2d-x for development. What ndk and cygwin do you need. Start learning with a hard head.
1. Download ndk, the latest version of R7. Decompress to D: \ develop, address: http://dl.google.com/android/ndk/android-ndk-r7-windows.zip
2. Project nativeCodePut in
3. CreateDescription of navive code.
4. Compile native code:CD
5.ProgramUse the code to load the compiled.
Idaq is a popular cracking tool that allows you to view the internal arm assembly of executable files.CodeTo indirectly obtain or guess the code of the executable file of the competitor.
The following is an example of a simple analysis of an iPhone application.ProgramCorresponding arm assembly code:
Stmfd SP !, {R4, R7, LR} // stack-in operation. Generally, this command is available at the beginning of any function.
LDR R1, = (off_13f888-0xb651c)
Volatile is intended to have two types of statements: 1. "transient" and 2. "changeable ".
Both of them are feasible. But what does volatile mean? An example is given (taking Keil-C and A51 as examples ).
The example is from Keil fqa). After reading the example, you should understand the meaning of volatile. If you still don't understand it, you have
Read it again.
Example 1.
Void main (void){Volatile int I;Int J;
I = 1; // 1 not optimized I = 1I = 2; // 2 is not optimized I = 1I = 3; // 3 not
Experiment topology diagram:
Experiments show: The three-tier architecture, R1 and R2 for Headquarters, R3 and R4 for the region, R5 and R6 as branch offices, R7 analog Internet routers
Experiment Request:
1. Branch to the headquarters or other areas to use R1 as the main link, R2 become a standby link
2.IP the hierarchy of address, to be able to achieve routing summary
3. The branch of the router as a stub node, to avoid other routers to send
-arm/mach/arch.h file. The __attribute__ ((__section__ (". Arch.info.init")) statement means that all MACHINE_DESC structures are stored in the ". Arch.info.init" segment, and they are organized together when the kernel is connected. The start address is __arch_info_begin and the end address is __arch_info_end. You can see it from the connection script Arch/arm/kernel/vmlinux.lds. - __arch_info_begin = .; #.arch.info.init segment Start address (dynamically determined at connecti
+ + language4. Use the cross-compilation tool to compile the C + + native code and finally link to the *.so executable5, the actual implementation of Java code to communicate with the local C + + codeNDK installation process:Under the premise that the computer has already configured the Android environment, only need to download the NDK (R7 above version), this is a compressed package, decompression is available. Note: Prior to
2 sets of 2000-Price AMD APU Configuration program, interested computer enthusiasts together to see, welcome to Pat Bricks.
2000 Yuan to buy what computer Configuration good? 2 sets of cost-effective APU Computer Configuration recommended
accessories name
brand model
reference price
processor
amd APU a10-7890k (box) ¥899
heatsink
boxed auto
--
video card
> Now the strongest
/myproject without selecting the revision number, and reintegrate merges all the modifications on branch to trunk. The following steps, as in the 9th step above, are no longer verbose. If no accident, branch will be successfully merged into trunk, you need to do is to merge the trunk hurriedly commit.
12, submitted after the merger of the trunk
Right-click on the merged item, Temp-> Commit.
13, Delete branch
If you think your new feature has been developed, you can delete your branch.
14, view
';
Query OK, 2 rows affected, 1 Warning (0.19 sec)
records:1 duplicates:1 warnings:1 mysql>
select * from t1;
+---+----+----+
| a | b
| +---+----+----+
| 1 | c3 | c2 |
| 2 | A | | |
3 | R5 | R3 |
| 5 | R4 | R5 |
+---+----+----+
4 rows in Set (0.00 sec)
"" A=5 time, the original C value is still in, this means that when the key sometimes, only the following Udate action statements are executed.
2.2 Check the auto_increment condition again.
mysql> INSERT INTO T1 (a,b) Select ' 3 '
51 single chip microcomputer precise delay procedure (crystal oscillator 12MHz, a machine cycle 1us.)Several precise delay procedures: in the calculation of accurate delay, the most easily overlooked is the calculation of the loop outside the part of the delay,This part does not affect the program in situations where the time requirement is not high.
A. 500MS Delay subroutine program:. (Crystal oscillator 12MHz, a machine cycle of 1us.)void delay500ms (void){unsigned char i,j,k;for (i=15;i>0;i--
to take effect: sudo source/etc/profile. Input: android. If the Android SDK Manager window is displayed, the Environment configuration is successful. 5. Install NDK 1) download NDK ,: http://developer.android.com/sdk/ndk/index.html Select the Linux version. Decompress the package, configure the environment, open the/etc/profile file, and enter the following content at the bottom: [plain] export NDK_HOME =/home/mayliang/programs/android-ndk-r7 export
Describes how to use SWI for an interruption.Privileged mode: A protection mode in which superisor SVC is used by the OS.It is actually an interruption. For hardware users, the interruption mode is defined by the user.1. Understand the available registers of normal user statusR0 ~ R7 universal R8 ~ R12 independent registers [some mode register groups are independent] R13-SP [independent] R14-LR [independent] PC [general] CPSR [independent]R0 ~
example, when an open system is called, the library function will eventually call _ syscall (Open). The macro is SWI #__ nr_open, that is, SWI #0x900005 triggers the interruption, 0 X in the [LR, #-4] address, the processor jumps to the ARCH/ARM/kernel/entry-common.S vector_swi read [LR, #-4] address in the interrupt number, then query the sys_call_table system call table in the arch/ARM/kernel/entry-common.S. defined in S, __nr_open corresponds to the sequence number in the table_ Syscall_star
43891f6c R7 42084eb0
I/debug (971): R8 4a570b80 R9 42084ea8 10 42084e94 FP 0011f3e0
I/debug (971): IP a7f0110c SP 4a570b50 LR ae203247 PC 815009ba CPSR a0000030
I/debug (971): #00 PC 000009ba/system/lib/HW/sensors. Default. So
I/debug (971): #01 PC 00003244/system/lib/libandroid_servers.so
I/debug (971): #02 PC 00011cf4/system/lib/libdvm. So
I/debug (971): #03 PC 0003f194/system/lib/libdvm. So
I/debug (971): #04 PC 00016cb8/system/lib/libdvm. So
I/de
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.