搜索
bottom↓
回复: 10

MISRA C 2004 工业标准的c编程规范

[复制链接]

出0入0汤圆

发表于 2007-9-18 12:06:46 | 显示全部楼层 |阅读模式
MISRA C 2004
一、开发环境(Environment)
二、语言外延(Language Extensions)
三、注释(Documentation)
四、字符集(Character Sets)
五、标识符(Identifiers)
六、类型(Types)
七、常量(Constants)
八、声明和定义(Declarations and Definitions)
九、初始化(Initialisation)
十、算术类型转换(Arithmetic Type Conversion)
十一、指针类型转换(Point Type Conversion)
十二、表达式(Expressions)
十三、控制表达式(Control Statement Expressions)
十四、控制流(Control Flow)
十五、Switch语句(Switch Statements)
十六、函数(Functions)
十七、指针和数组(Pointers and Arrays)
十八、结构体和联合体(Structures and Unions)
十九、预处理命令(Preprocessing Directives)
二十、标准库(Standard Libraries)
二十一、运行失败(Run-Time Failures)
一、开发环境(Environment)
1.1 All code shall conform to ISO 9899:1990“Programming languages – C”, amended and corrected by ISO/IEC 9899/COR1:1995, ISO/IEC 9899/AMD1:1995, and ISO/IEC 9899/COR2:1996.
翻译:
1.2 No reliance shall be placed on undefined or unspecified behaviour.
翻译:
1.3 Multiple compilers and/or languages shall only be used if there is a common defined interface standard for object code to which the languages/compilers/assemblers conform.
翻译:
1.4 The compiler/linker shall be checked to ensure that 31 character significance and case sensitivity are supported for external identifiers.
翻译:
1.5 Floating-point implementations should comply with a defined floating-point standard.
翻译:





二、语言外延(Language Extensions)
2.1 Assembly language shall be encapsulated and isolated.
翻译:
2.2 Source code shall only use /* … */ style comments.
翻译:
2.3 The character sequence /* shall not be used within a comment.
翻译:
2.4 Sections of code should not be “commented out”.
翻译:













三、注释(Documentation)
3.1 All usage of implementation-defined behaviour shall be documented.
翻译:
3.2 The character set and the corresponding encoding shall be documented.
翻译:
3.3 The implementation of integer division in the chosen compiler should be determined, documented and taken into account.
翻译:
3.4 All uses of the #pragma directive shall be documented and explained.
翻译:
3.5 If it is being relied upon, the implementation defined behaviour and packing of bitfields shall be documented.
翻译:
3.6 All libraries used in production code shall be written to comply with the provisions of this document, and shall have been subject to appropriate validation.
翻译:




四、字符集(Character Sets)
4.1 Only those escape sequences that are defined in the ISO C standard shall be used.
翻译:
4.2 Trigraphs shall not be used.
翻译:
















五、标识符(Identifiers)
5.1 Identifiers (internal and external) shall not rely on the significance of more than 31 characters.
翻译:
5.2 Identifiers in an inner scope shall not use the same name as an identifier in an outer scope, and therefore hide that identifier.
翻译:
5.3 A typedef name shall be a unique identifier.
翻译:
5.4 A tag name shall be a unique identifier.
翻译:
5.5 No object or function identifier with static storage duration should be reused.
翻译:
5.6 No identifier in one name space should have the same spelling as an identifier in another name space, with the exception of structure and union member names.
翻译:
5.7 No identifier name should be reused.
翻译:


六、类型(Types)
6.1 The plain char type shall be used only for the storage and use of character values.
翻译:
6.2 Signed and unsigned char type shall be used only for the storage and use of numeric values.
翻译:
6.3 Typedefs that indicate size and signedness should be used in place of the basic types.
翻译:
6.4 Bit fields shall only be defined to be of type unsigned int or signed int.
翻译:
6.5 Bit fields of type signed int shall be at least 2 bits long.
翻译:







七、常量(Constants)
7.1 Octal constants (other than zero) and octal escape sequences shall not be used.



















八、声明和定义(Declarations and Definitions)
8.1 Functions shall have prototype declarations and the prototype shall be visible at both the function definition and call.
翻译:
8.2 Whenever an object or function is declared or defined, its type shall be explicitly stated.
翻译:
8.3 For each function parameter the type given in the declaration and definition shall be identical, and the return types shall also be identical.
翻译:
8.4 If objects or functions are declared more than once their types shall be compatible.
翻译:
8.5 There shall be no definitions of objects or functions in a header file.
翻译:
8.6 Functions shall be declared at file scope.
翻译:
8.7 Objects shall be defined at block scope if they are only accessed from within a single function.
翻译:
8.8 An external object or function shall be declared in one and only one file.
翻译:
8.9 An identifier with external linkage shall have exactly one external definition.
翻译:
8.10 All declarations and definitions of objects or functions at file scope shall have internal linkage unless external linkage is required.
翻译:
8.11 The static storage class specifier shall be used in definitions and declarations of objects and functions that have internal linkage.
翻译:
8.12 When an array is declared with external linkage, its size shall be stated explicitly or defined implicitly by initialisation.
翻译:









九、初始化(Initialisation)
9.1 All automatic variables shall have been assigned a value before being used.
翻译:
9.2 Braces shall be used to indicate and match the structure in the non-zero initialisation of arrays and structures.
翻译:
9.3 In an enumerator list, the “=” construct shall not be used to explicitly initialise members other than the first, unless all items are explicitly Initialised.
翻译:











十、算术类型转换(Arithmetic Type Conversion)
10.1 The value of an expression of integer type shall not be implicitly converted to a different underlying type if:
a) it is not a conversion to a wider integer type of the same signedness, or
b) the expression is complex, or
c) the expression is not constant and is a function argument, or
d) the expression is not constant and is a return expression
翻译:
10.2 The value of an expression of floating type shall not be implicitly converted to a different type if:
a) it is not a conversion to a wider floating type, or
b) the expression is complex, or
c) the expression is a function argument, or
d) the expression is a return expression
翻译:
10.3 The value of a complex expression of integer type may only be cast to a type that is narrower and of the same signedness as the underlying type of the expression.
翻译:
10.4 The value of a complex expression of floating type may only be cast to a narrower floating type.
翻译:
10.5 If the bitwise operators ~ and << are applied to an operand of underlying type unsigned char or unsigned short, the result shall be immediately cast to the underlying type of the operand.
翻译:
10.6 A “U” suffix shall be applied to all constants of unsigned type.
翻译:
















十一、指针类型转换(Point Type Conversion)
11.1 Conversions shall not be performed between a pointer to a function and any type other than an integral type.
翻译:
11.2 Conversions shall not be performed between a pointer to object and any type other than an integral type, another pointer to object type or a pointer to void.
翻译:
11.3 A cast should not be performed between a pointer type and an integral type.
翻译:
11.4 A cast should not be performed between a pointer to object type and a different pointer to object type.
翻译:
11.5 A cast shall not be performed that removes any const or volatile qualification from the type addressed by a pointer.
翻译:





十二、表达式(Expressions)
12.1 Limited dependence should be placed on C’s operator precedence rules in expressions.
翻译:
12.2 The value of an expression shall be the same under any order of evaluation that the standard permits.
翻译:
12.3 The sizeof operator shall not be used on expressions that contain side effects.
翻译:
12.4 The right hand operand of a logical && or || operator shall not contain side effects.
翻译:
12.5 The operands of a logical && or || shall be primary-expressions.
翻译:
12.6 The operands of logical operators (&&, || and !) should be effectively Boolean. Expressions that are effectively Boolean should not be used as operands to operators other than (&&, || and !).
翻译:
12.7 Bitwise operators shall not be applied to operands whose underlying type is signed.
翻译:
12.8 The right hand operand of a shift operator shall lie between zero and one less than the width in bits of the underlying type of the left hand operand.
翻译:
12.9 The unary minus operator shall not be applied to an expression whose underlying type is unsigned.
翻译:
12.10 The comma operator shall not be used.
翻译:
12.11 Evaluation of constant unsigned integer expressions should not lead to wrap-around.
翻译:
12.12 The underlying bit representations of floating-point values shall not be used.
翻译:
12.13 The increment (++) and decrement (--) operators should not be mixed with other operators in an expression.
翻译:




十三、控制表达式(Control Statement Expressions)
13.1 Assignment operators shall not be used in expressions that yield a Boolean value.
翻译:
13.2 Tests of a value against zero should be made explicit, unless the operand is effectively Boolean.
翻译:
13.3 Floating-point expressions shall not be tested for equality or inequality.
翻译:
13.4 The controlling expression of a for statement shall not contain any objects of floating type.
翻译:
13.5 The three expressions of a for statement shall be concerned only with loop control.
翻译:
13.6 Numeric variables being used within a for loop for iteration counting shall not be modified in the body of the loop.
翻译:
13.7 Boolean operations whose results are invariant shall not be permitted.
翻译:
十四、控制流(Control Flow)
14.1 There shall be no unreachable code.
翻译:
14.2 All non-null statements shall either:
a) have at least one side-effect however executed, or
b) cause control flow to change.
翻译:
14.3 Before preprocessing, a null statement shall only occur on a line by itself; it may be followed by a comment provided that the first character following the null statement is a white space character.
翻译;
14.4 The goto statement shall not be used.
翻译:
14.5 The continue statement shall not be used.
翻译:
14.6 For any iteration statement there shall be at most one break statement used for loop termination.
翻译:
14.7 A function shall have a single point of exit at the end of the function.
翻译:
14.8 The statement forming the body of a switch, while, do ... while or for statement shall be a compound statement.
翻译:
14.9 An if (expression) construct shall be followed by a compound statement. The else keyword shall be followed by either a compound statement, or another if statement.
翻译:
14.10 All if … else if constructs shall be terminated with an else clause.
翻译:















十五、Switch语句(Switch Statements)
15.1 A switch label shall only be used when the most closely-enclosing compound statement is the body of a switch statement.
翻译:
15.2 An unconditional break statement shall terminate every non empty switch clause.
翻译:
15.3 The final clause of a switch statement shall be the default clause.
翻译:
15.4 A switch expression shall not represent a value that is effectively Boolean.
翻译:
15.5 Every switch statement shall have at least one case clause.
翻译:








十六、函数(Functions)
16.1 Functions shall not be defined with a variable number of arguments.
翻译:
16.2 Functions shall not call themselves, either directly or indirectly.
翻译:
16.3 Identifiers shall be given for all of the parameters in a function prototype declaration.
翻译:
16.4 The identifiers used in the declaration and definition of a function shall be identical.
翻译:
16.5 Functions with no parameters shall be declared with parameter type void.
翻译:
16.6 The number of arguments passed to a function shall match the number of parameters.
翻译:
16.7 A pointer parameter in a function prototype should be declared as pointer to const if the pointer is not used to modify the addressed object.
翻译:
16.8 All exit paths from a function with non-void return type shall have an explicit return statement with an expression.
翻译:
16.9 A function identifier shall only be used with either a preceding &, or with a parenthesized parameter list, which may be empty.
翻译:
16.10 If a function returns error information, then that error information shall be tested.
翻译:















十七、指针和数组(Pointers and Arrays)
17.1 Pointer arithmetic shall only be applied to pointers that address an array or array element.
翻译:
17.2 Pointer subtraction shall only be applied to pointers that address elements of the same array.
翻译:
17.3 >, >=, <, <= shall not be applied to pointer types except where they point to the same array.
翻译:
17.4 Array indexing shall be the only allowed form of pointer arithmetic.
翻译:
17.5 The declaration of objects should contain no more than 2 levels of pointer indirection.
翻译:
17.6 The address of an object with automatic storage shall not be assigned to another object that may persist after the first object has ceased to exist.
翻译:



十八、结构体和联合体(Structures and Unions)
18.1 All structure and union types shall be complete at the end of a translation unit.
翻译:
18.2 An object shall not be assigned to an overlapping object.
翻译:
18.3 An area of memory shall not be reused for unrelated purposes.
翻译:
18.4 Unions shall not be used.
翻译:












十九、预处理命令(Preprocessing Directives)
19.1 #include statements in a file should only be preceded by other preprocessor directives or comments.
翻译:
19.2 Non-standard characters should not occur in header file names in #include directives.
翻译:
19.3 The #include directive shall be followed by either a <filename> or "filename" sequence.
翻译:
19.4 C macros shall only expand to a braced initialiser, a constant, a parenthesized expression, a type qualifier, a storage class specifier, or a do-while-zero construct.
翻译:
19.5 Macros shall not be #define’d or #undef’d within a block.
翻译:
19.6 #undef shall not be used.
翻译:
19.7 A function should be used in preference to a function-like macro.
翻译:
19.8 A function-like macro shall not be invoked without all of its arguments.
翻译:
19.9 Arguments to a function-like macro shall not contain tokens that look like preprocessing directives.
翻译:
19.10 In the definition of a function-like macro each instance of a parameter shall be enclosed in parentheses unless it is used as the operand of # or ##.
翻译:
19.11 All macro identifiers in preprocessor directives shall be defined before use, except in #ifdef and #ifndef preprocessor directives and the defined() operator.
翻译:
19.12 There shall be at most one occurrence of the # or ## operators in a single macro definition.
翻译:
19.13 The # and ## operators should not be used.
翻译:
19.14 The defined preprocessor operator shall only be used in one of the two standard forms.
翻译;
19.15 Precautions shall be taken in order to prevent the contents of a header file being included twice.
翻译:
19.16 Preprocessing directives shall be syntactically meaningful even when excluded by the preprocessor.
翻译:
19.17 All #else, #elif and #endif preprocessor directives shall reside in the same file as the #if or #ifdef directive to which they are related.
翻译:















二十、标准库(Standard Libraries)
20.1 Reserved identifiers, macros and functions in the standard library, shall not be defined, redefined or undefined.
翻译:
20.2 The names of standard library macros, objects and functions shall not be reused.
翻译:
20.3 The validity of values passed to library functions shall be checked.
翻译:
20.4 Dynamic heap memory allocation shall not be used.
翻译:
20.5 The error indicator errno shall not be used.
翻译:
20.6 The macro offsetof, in library <stddef.h>, shall not be used.
翻译:
20.7 The setjmp macro and the longjmp function shall not be used.
翻译:
20.8 The signal handling facilities of <signal.h> shall not be used.
翻译:
20.9 The input/output library <stdio.h> shall not be used in production code.
翻译:
20.10 The library functions atof, atoi and atol from library <stdlib.h> shall not be used.
翻译:
20.11 The library functions abort, exit, getenv and system from library <stdlib.h> shall not be used.
翻译;
20.12 The time handling functions of library <time.h> shall not be used.
翻译:














二十一、运行失败(Run-Time Failures)
21.1 Minimisation of run-time failures shall be ensured by the use of at least one of
a) static analysis tools/techniques;
b) dynamic analysis tools/techniques;
c) explicit coding of checks to handle run-time faults.

阿莫论坛20周年了!感谢大家的支持与爱护!!

知道什么是神吗?其实神本来也是人,只不过神做了人做不到的事情 所以才成了神。 (头文字D, 杜汶泽)

出0入0汤圆

发表于 2007-9-18 12:29:56 | 显示全部楼层
有没有完整的PDF呀?

出0入0汤圆

发表于 2007-10-4 16:49:03 | 显示全部楼层
MISRA2004概览  

2005-4-25 http://www.softtest.cn admin
--------------------------------------------------------------------------------
  
MISRA是汽车工业C语言编程指导,是嵌入式C语言的编程指导,目前在各个行业,包括:航空,航天,船舶,电信,医疗等行业广泛采纳,是最优秀的嵌入式C语言标准,在MISRA1998版的基础上,最新发布的MISRA2004有一下改进:
&#61548; 121条强制遵守,20条建议遵守
&#61548; 复杂规则细化
&#61548; 模糊规则明确
&#61548; 引入一些数学操作的规则
规则分类包括:
&#61548; 环境
&#61548; 语言扩展
&#61548; 文档化
&#61548; 字符集
&#61548; 标识符
&#61548; 类型
&#61548; 约束
&#61548; 声明和定义
&#61548; 初始化
&#61548; 数学类型转换
&#61548; 指针类型转换
&#61548; 表达式
&#61548; 控制语句表达式
&#61548; 控制流
&#61548; Swith语句
&#61548; 函数
&#61548; 指针和数组
&#61548; 结构和联合
&#61548; 预处理指令
&#61548; 标准库
&#61548; 运行时失效
下面概要的介绍MISRA2004中的一些规则:

<环境>
Rule1.1(强制):所有的代码应该遵守ISO 9899:1990“Programming Language C”
Rule1.2(强制):只有当具备统一接口的目标代码的时候才可以采用多种编译器和语言
Rule1.4(强制) 检查编译器/连接器以确保支持31一个有效字符,支持大小写敏感

<语言扩展>
Rule 2.1(强制):汇编语言应该封装起来并且隔离:
例如:#define NOP asm(“  NOP”)

Rule 2.2(强制) :源代码只能采用/*…*/风格的注释
Rule2.3(强制): 字符序列/*不能在注释中使用
注:C语言不支持注释的嵌套即使一些编译器支持这个语言扩展

Rule 2.4(建议):代码段不能注释掉
注:应采用#IF 或者#ifdef来构成一个注释,否则代码里如果有注释会改变代码的作用

<文档化>
Rule 3.3(建议):编译器对于整数除法运算的实施应该写入文档
例编译器:-5/3 = -1 余-2 有些编译器结果是-2于+1

<字符集>
Rule 4.1(强制):只能使用ISO标准定义的字符集

<标识符>
Rule6.5 (强制):在内部范围的标识符不能和外部的标识符用同样的名字,因为会隐藏那个标识符

例:
Int16_t i:
Void f()
{
int16_t I;
i=3;
}

Rule 5.2(强制): typedef 名称只能唯一,不能重复定义
Rule 5.4(强制): 标记名应该是唯一的标识符
Rule 5.7(建议):标识符不能重复使用

<类型>
Rule 6.1(强制):Char类型只能用来存储使用字符
Rule 6.2(强制):signed和unsigned char 只能用来存储和使用数据值
Rule6.3(建议)对于基本的类型使用Typedef来表示大小和有无符号
例:
Typedef char char_t
Typedef signed int int32_t

<约束>
Rule 7.1(强制):不要用八进制数
注:整型常数以”0“开始会被认为是8进制
例:code[1]=109
    code[2]=100
       code[3]=052
       code[4]=071
如果是对总线消息初始化,会有危险
<声明和定义>
Rule 8.1(强制):函数都应该有原型声明,且相对函数定义和调用可见
Rule8.2 (强制):无论何时一个对象和函数声明或者定义,它的类型应该明确声明
Rule 8.5(强制):头文件中不要定义对象或者函数
Rule8.3(强制):每个函数声明中的参数的类型应该和定义中的类型一致
Rule 8.8(强制):外部变量或者函数只能声明在一个文件中
注:一般来讲,声明在头文件中,然后包含在定义和使用的文件中
Rule 8.12(强制):数组声明为外部,应该明确声明大小或者直接初始化确定
例:extern int array2[ ]  /* 违反Rule8.8 */

<初始化>
Rule 9.1(强制):所有变量在使用之前都应该赋值

<数学类型转换(隐式)>
Rule 10.1(强制):整型表达式不要隐式转换为其他类型:
    a)转换到更大的整型
    b)表达式太复杂
    c)表达式不是常数是一个函数
    d)表达式不是一个常数是一个返回表达式

Rule 10.2(强制):浮点数表达式不要隐式转换为其他类型:
    a)转换到更大的浮点数
    b)表达式太复杂
    c)表达式是一个函数
    d)表达式是一个返回表达式

<数学类型转换(明确)>
Rule 10.3(强制):整型表达式的值只能转换到更窄小且是同样符号类型的表达式
Rule 10.4(强制):浮点表达式的值只能转换到更窄小的浮点表达式

<数学类型转换>
Rule 10.6(强制):所有的 unsigned类型都应该有后缀”U“
Rule 11.1(强制):指针不能转换为函数或者整型以外的其他类型

<表达式>
Rule12.2(强制):表达式的值应和标准允许的评估顺序一致

例:
X=b + i++;
不同的编译器给出的结果不一样,b是否先执行?
应:x=b;
       i++;
比如:
X=func(i++,i);
Rule12.3(强制):sizeof操作符不能用在包含边界作用(side effect)的表达式上

例:
Int32_t=i;
Int32_t=j;
j=sizeof(i=1234);
表达式并没有执行,只是得到表达式类型int的size

Rule 12.4(强制):逻辑操作符&&或者||右边不能包含边界作用(side effect)

例:
If(ishight) && (x== i++)),如果ishight=0那么i++不会评估

Rule 12.3(建议):++和- -不能和其他表达式用在一个表达式中
例:
U8a=++u8b + u8c--;

<控制语句表达式>
Rule13.1(强制):赋值语句不能用在一个产生布尔值的表达式中
例:
If((x=y)!=0)…
更差:
If (x=y)…

Rule13.3(强制):浮点表达式不应该测试其是否相等或者不相等
Rule13.4(强制):for控制表达式中不要包含任何浮点类型
Rule13.6(强制):数字变量作为for循环的循环计数不要在循环体内部被修改
例:
Flag=1;
For(i=0;(i<5)&&(flag==1);i++)
{
Flag=0;
i=i+3;
}

<控制流>
Rule 14.1(强制):不要有执行不到的代码
例:
Swich(event)
{
Case www;
          do_wakeup();
          break;
          do_more();

}

Rule 14.4(强制):goto语句不能使用
Rule 14.5(强制):continue不能使用
Rule 14.6(强制):函数应在函数结束有一个出口
Rule 14.7(强制):witch,while,do ...while,for语句体应是一个混合语句(括号)
Rule 14.10(强制):所有if…else if结构都应该由else结束

<Switch语句>
Rule 15.3(强制):switch的最后应是default
Rule 15.4(强制):switch表达式不能使用布尔表达式
例:
Switch(x==0)
{
… …
}
Rule 15.5(强制):每一个Switch语句都应该有一个case
例:
Switch(x)
{
Uint8_t var; /* 违反*/
Case 0:
A=b;

}

<函数>
Rule16.2(强制):函数不能直接或者间接的调用自己
注:safe-related 系统不能用递归,超出堆栈空间很危险

Rule16.8(强制):non-void类型函数的所有出口路径都应该有一个明确的return语句表达式

<指针和数组>
Rule17.1(强制):指针的数学_运算只能用在指向数组的地址上
Rule17.3(强制):>,>=,<,<=不能用在指针类型除非指向同一个数组
Rule 17.5(建议):不要用2级以上指针

<结构和联合>
Rule18.4(强制)不要用Union

<预处理指令>
Rule19.1(建议):#include语句的前面只能有其他预处理指令和注释
Rule19.2(建议):#include指令中的头文件名称不能包含非标准的字符
Rule19.5(强制):宏不能在函数体内定义
Rule19.8(强制):类函数宏调用时不能没有它的参数

<标准库>
Rule20.1(强制):标准库中的保留标识符,宏和函数不能定义,重定义,和undefined
Rule20.4(强制):动态内存分配不能使用
注:不能使用:malloc,calloc,free,realloc
Rule20.9(强制):输入输出库(stdio.h)不能用在产生嵌入式系统中
Rule20.12(强制):时间处理函数<time.h>不能使用

<运行时故障>
Rule 21.1(强制):通过使用一下手段确保把运行时故障最小化:
– 静态分析工具/技术
– 动态分析工具/技术
– 编写明确的代码避免运行时错误

QAC Compliance Module for MISRA-C:2004 已经正式发布,成为最快全面支持MISRA2004的工具之一。

出0入0汤圆

发表于 2007-10-4 19:18:12 | 显示全部楼层
好!最近比较关注这个东西.希望能一起讨论.

出0入0汤圆

发表于 2007-10-5 06:38:07 | 显示全部楼层
Misra C Rules
点击此处打开ourdev_175288.pdf(文件大小:720K)

出0入0汤圆

发表于 2008-7-23 09:59:21 | 显示全部楼层
MISRA C 2004这个版本的PDF谁有?

出0入0汤圆

发表于 2010-5-25 21:55:20 | 显示全部楼层
mark

出0入0汤圆

发表于 2011-7-1 23:52:55 | 显示全部楼层
mark

出0入0汤圆

发表于 2011-7-30 14:28:46 | 显示全部楼层
good! cool!

出0入0汤圆

发表于 2012-11-11 22:40:36 | 显示全部楼层
Thanks for sharing!

出0入0汤圆

发表于 2013-8-26 10:50:47 | 显示全部楼层
感谢分享!
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片。注意:要连续压缩2次才能满足要求!!】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|amobbs.com 阿莫电子技术论坛 ( 粤ICP备2022115958号, 版权所有:东莞阿莫电子贸易商行 创办于2004年 (公安交互式论坛备案:44190002001997 ) )

GMT+8, 2024-7-24 01:27

© Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

快速回复 返回顶部 返回列表