[jvm] Operand stack of virtual machine stack

Directory 1. Description 2. Illustration 2.1 Code examples 2.2 javap operation 3. Illustration 3.1 bipush 15 3.2 istore_1 3.3 bipush 8 3.4 istore_2 3.5 iload_1 3.6 iload_2 3.7 iadd 3.8 istore_3 3.9 end of return 4. Additional 1. Description 1.Operand Stack 2. The stack can be implemented using an array or linked list 3. Each […]

Solving TypeError: unsupported operand type(s) for +: dict_items and list

Table of Contents Solving TypeError: unsupported operand type(s) for + : ‘dict_items’ and ‘list’ wrong reason solution Method 1: Convert dictionary view to list Method 2: Use the extend() method Method 3: Use list parsing Summarize Solving TypeError: unsupported operand type(s) for + : ‘dict_items’ and ‘list’ In Python programming, we often encounter various errors. […]

ida uses Operand type to shift the number to the guide and switch repair

__text:0000000100003E70 SUB SP, SP, #0x30 __text:0000000100003E74 STP X29, X30, [SP, #0x20 + var_s0] __text:0000000100003E78 ADD X29, SP, #0x20 __text:0000000100003E7C STUR WZR, [X29,#var_4] __text:0000000100003E80 B loc_100003E84 __text:0000000100003E84 ; ———————————————- —————————– __text:0000000100003E84 __text:0000000100003E84 loc_100003E84 ; CODE XREF: _main + 10↑j __text:0000000100003E84 ; _main:loc_100003F4C↓j __text:0000000100003E84 MOV X9, SP __text:0000000100003E88 SUB X8, X29, #-var_8 __text:0000000100003E8C STR X8, [X9,#0x20 + […]

JS-4 operators and operands; arithmetic operators; assignment operators; in-place modification; self-increment, self-decrement; operator precedence; comparison operators;

Table of Contents 1_Operators and operands 1.1_operators 1.2_Operators 2_ arithmetic operators 3_ assignment operator 4_Modify in place 5_Increment and decrement 5.1_Increment and decrement operators 5.2_ Position of auto-increment and auto-decrement 6_ operator precedence 7_ comparison operators 7.1_ The result of the comparison operator is Boolean type 7.2 Difference between _=== and == 1_operators and operands […]

Three major additions to operator overloading (preposition and postposition, order of operands and parameters, pointer parameter permissions), const modified member functions, overloading of >><< and declaration of friend functions

TIPS Constructor Destructor Copy constructor Operator overloading Assignment operator overloading When the operators in the code are all connected with built-in types, because of the built-in types, it knows how to perform operations, so it will be directly converted into instructions, and then any one is not a built-in type, but a custom one. type, […]

Code obfuscation leads to [java.lang.VerifyError Bad type on operand stack]

Code confusion leads to [java.lang.VerifyError Bad type on operand stack] Scene For the security of the source code during project development, the code is sometimes confused so that people cannot get the source code by decompiling the Java class file, but some problems may arise after the code is confused. Description of the problem I […]

[Solved] Solve error: invalid operands of types ‘const char [6]’ and ‘const char [6]’ to binary ‘operator+’

Article table of contents foreword 1. The scene that happened Second, the solution 1. Explicitly declare that one of them is of type std::string (recommended writing) 2. Remove + and let the compiler concatenate strings (not recommended) 3. Verification Foreword When using strings in C++, I habitually connect two strings enclosed by “” with + […]

[Solved] error: ambiguous overload for ‘operator[]’ (operand types are ‘CXmlNode’ and ‘int’)

Phenomena: After practicing encapsulating xml to rewrite the [ ] operator today, error: ambiguous overload for ‘operator[]’ (operand types are ‘CXmlNode’ and ‘int’) appears when calling. Function prototype: class CXmlNode {<!– –> … CXmlNode & amp; operator[](const char* nodename) {<!– –> …. } CXmlNode & amp; operator[](uint32_t idx) {<!– –> … } … } main.cpp: […]