Valid

GB/T 28169-2011Embedded software - C language coding specification (English PDF)

嵌入式软件 C语言编码规范

Preview PDF

This is a limited preview

Buy now to download the full PDF (21 pages)

Need quotation for your management?

Get a formal quotation for GB/T 28169-2011 in 30 minutes.

Issued by

SAMR; SAC

Level / Type

National · Recommended

Issue date

December 30, 2011

Implementation date

June 1, 2012

Scope

GB/T 28169-2011 is the English-translated version of 嵌入式软件 C语言编码规范.

GB/T 28169-2011 is the Chinese standard "Embedded software - C language coding specification". Its scope clause reads: This standard specifies the use of C language in embedded software programming specifications.

This standard also gives embedded system development We should pay attention to coding-related matters. This standard applies to embedded software design life cycle of the C language, coding, testing and use. Its clauses include terms and definitions; encoding specifications.

Found what you need?

Document preview — GB/T 28169-2011

National Standard of the People's Republic of China

ICS
35.060
Classification
L 74

Issued by: State Administration for Market Regulation; Standardization Administration of the PRC

Contents

  • Introduction
  • 1 Scope
  • 2 Normative references
  • 3 Terms and definitions
  • 4 encoding specifications
  • 4.1 General Requirements
  • 4.2 Memory space management class
  • 4.3 interrupt handling class
  • 4.4 System Interface Class
  • 4.5 hardware initialization class
  • 4.6 class initialization software module
  • 4.8 declaration defines class
  • 4.10 Type Conversion Class
  • 4.11 pointer array using the class
  • 4.12 arithmetic processing class
  • 4.13 function uses class
  • 4.14 redundancy class
  • 4.15 procedural efficiency class
  • 5 Compliance
  • Appendix A (informative) Compliance matrix
  • References

1 Scope

This standard specifies the use of C language in embedded software programming specifications. This standard also gives embedded system development

We should pay attention to coding-related matters.

This standard applies to embedded software design life cycle of the C language, coding, testing and use.

2 Normative references

The following documents for the application of this document is essential. For dated references, only the dated version suitable for use herein

Member. For undated references, the latest edition (including any amendments) applies to this document.

GB/T 15272 programming language C

3 Terms and Definitions

GB/T 15272 and defined by the following terms and definitions apply to this document.

3.1 Side effects sideeffect

After execution of the expression runtime environment may be affected. Assignment, increment and other operations are typical side effects of having

Operation.

4 encoding specifications

4.1 General Requirements

4.1.1

should be read before programming hardware circuitry and chip information --- familiar with the various memory chips (region), register address, interrupt service, will

When, communications interface and other functions, as necessary, will be added to the program-related information in the comments.

4.1.2

Programming should be noted that the program memory space --- such as instruction space, data space, stack space size exceeds

Restrictions system.

4.1.3

Use of the Commonwealth, the Commonwealth of the details of the compiler should be clear --- such as storage at the end of the Commonwealth of the number of filling units, linked

How to align individual member assembly, multi-byte data type low bytes discharge order and so on.

Methods and 4.1.4 should note the difference between hardware reset and software reset --- real watchdog function in the program should be used to provide chips

Now the hardware system reset.

4.1.5

should note that a variety of CPU memory access speed --- in the program should use a variety of hardware devices to improve their own characteristics

Program efficiency.

4.1.6

It should be noted the number of bits used by the compiler of the target CPU supports standard C language debugger occupied memory, compatible

And other characteristics.

4.1.7

It should be noted compiler principles of different types of data and related details --- such as local variables static category number in the memory

According to district generated, rather than local variables static category will be generated in the stack.

4.1.8

It should be noted the difference between program development and debugging environment and the practical application environment.

END: Draft Version (GB/T 28169-2011)

GB/T 44130.1-2024 | YD/T 3746-2020 | GB/T 39190-2020 | GB/T 46687.3-2026 | GB/T 46687.1-2025 | GB/T 28168-2011 |

Quality Assurance | How to buy PDFs? | FAQ Terms of Service | Contact Information | Privacy Policy | Refund Policy | Shipping Policy […]

......
This preview omits tables, figures, formulas and parts of the technical clauses. The complete document — 21 pages — is available in the English PDF.

Similar standards

How to Download GB/T 28169-2011

  1. 1

    Add to cart

    Click "Download PDF" on this page and choose "Buy this standard". You can add more standards before checkout.

  2. 2

    Checkout

    Enter your email and billing details. Payment is processed securely by Stripe (cards or bank transfer). Prefer bank details? Request a quotation (min. order $300).

  3. 3

    Fast delivery

    After payment you'll receive an email confirmation. The English PDF is sent to the same address, usually within minutes and at the latest within 1 business day.

  4. 4

    Invoice included

    A tax invoice is attached to the confirmation email. Need a custom invoice? Contact us.

Related Standards

English PDF
21 pages
Fast delivery
Invoice included
View Cart

Secure payment via Stripe

Payments accepted

VisaMastercardAmerican ExpressApple PayGoogle PayStripe

GB/T 28169-2011

$375.00