An Introduction To The Use Of The Keil C51 Compiler On The 8051 Family

The book introduction: Compiler chain;C51 Basics - The 8051 Architecture; Declaring Variables And Constants; Program Structure And Layout; C Language Extensions For 8051 Programming; Pointers In C51; Accessing External Memory Mapped Peripherals ; Linking Issues And Stack Placement; Other C51 Extensions; Miscellaneous Points; Some C51 Programming Tricks; ...

An Introduction To The Use Of The Keil C51 Compiler On The 8051 Family

Mike Beach, Chris Hills

Hitex development tools

2003

Abstract

If you've flicked through this publication, you may be left thinking that it is necessary to be an expert to produce workable programs with C51. Nothing could be further from the truth. It is perfectly possible to write real commercial programs with nothing more than a reasonable knowledge of the ANSI C language.

However, to get the maximum performance from the 8051, knowing a few tricks is very useful. This is particularly true if you are working on a very cost-sensitive project where needing a bigger RAM or EPROM can result in an unacceptable on-cost. After all, if cost was not a consideration, we would all be using 80C166s and 68000s!

Whilst the C51 Primer is really aimed at users of the Keil C51 Compiler, it is applicable in part to compilers such as IAR and Tasking. However, as these compilers do not allow such low-level access and have fewer 8051-specific extensions, they are le ss likely to be used on projects where getting maximum performance is essential.

The C51 Primer Will Help You:

  • Find your way around the basic 8051 architecture.
  • Make a sensible choice of memory model and special things to watch out for.
  • Locate things at specific addresses.
  • Make best use of structures.
  • Use bit-addressable memory.
  • Think in terms of chars rather than ints.
  • Get the best out of the various pointer types.
  • Get a modular structure into programs.
  • Access on and off-chip ports and peripherals.
  • Deal with interrupts.
  • Use registerbanks.
  • Deal with the stack.
  • Understand RAM overlaying.
  • Interface to assembler code.
  • Use special versions like the 80C517 and 87C751.
  • Use assembler tricks in C.
  • Help the optimiser to produce the smallest, fastest code.

Citation

Mike Beach, Chris Hills, An Introduction To The Use Of The Keil C51 Compiler On The 8051 Family, Hitex development tools, 2003

Collection

Ngành CÔNG NGHỆ KỸ THUẬT ĐIỆN – ĐIỆN TỬ (7510301)

Related document

An Introduction To The Use Of The Keil C51 Compiler On The 8051 FamilyFundamentals of electric circuits Building Automation: Communication Systems with EIB/KNX,LON and BACnet

An Introduction To The Use Of The Keil C51 Compiler On The 8051 Family

Fundamentals of electric circuits Building Automation: Communication Systems with EIB/KNX,LON and BACnet

QR code

An Introduction To The Use Of The Keil C51 Compiler On The 8051 Family

Content

  • Thứ Sáu, 09:36 06/05/2022

Tin tiêu điểm

Tân sinh viên quốc tế tham quan, trải nghiệm và tìm hiểu cách khai thác tài nguyên thông tin Thư viện

Tân sinh viên quốc tế tham quan, trải nghiệm và tìm hiểu cách khai thác tài nguyên thông tin Thư viện

Thứ Hai, 13:11 07/09/2026
Trao tặng những món quà ý nghĩa tới học sinh có hoàn cảnh khó khăn tại Trường TH&THCS Bắc Phong trước thềm năm học mới

Trao tặng những món quà ý nghĩa tới học sinh có hoàn cảnh khó khăn tại Trường TH&THCS Bắc Phong trước thềm năm học mới

Thứ Năm, 07:53 03/09/2026
Hướng dẫn khai thác và sử dụng Thư viện Đại học Công nghiệp Hà Nội năm 2024

Hướng dẫn khai thác và sử dụng Thư viện Đại học Công nghiệp Hà Nội năm 2024

Thứ Ba, 14:33 17/09/2024

PGS.TS Nguyễn Thị Hồng Nga, Giám đốc - Trung tâm Đào tạo Sau đại học trao tặng 02 đầu sách ngoại văn cho Trung tâm Thông tin - Thư viện

Thứ Sáu, 07:37 24/05/2024
Hướng dẫn khai thác Bộ sưu tập tài nguyên giáo dục mở (OER)

Hướng dẫn khai thác Bộ sưu tập tài nguyên giáo dục mở (OER)

Thứ Bảy, 15:58 04/05/2024

Các bài đã đăng

Contemporary Art and the Display of Ancient Egypt

Contemporary Art and the Display of Ancient Egypt

Thứ Tư, 14:43 23/09/2026
Ukraine's Journey to Recovery, Reform and Post-War Reconstruction: A Blueprint for Security, Resilience and Development

Ukraine's Journey to Recovery, Reform and Post-War Reconstruction: A Blueprint for Security, Resilience and Development

Thứ Tư, 13:30 23/09/2026
Ontohackers: Radical Movement Philosophy in the Age of Extinctions and Algorithms, Part II R/evolution Technologies

Ontohackers: Radical Movement Philosophy in the Age of Extinctions and Algorithms, Part II R/evolution Technologies

Thứ Tư, 13:28 23/09/2026
Design for Sustainability: A Multi-level Framework from Products to Socio-technical Systems

Design for Sustainability: A Multi-level Framework from Products to Socio-technical Systems

Thứ Tư, 10:00 23/09/2026
Education and Learning for Sustainable Futures: 50 Years of Learning for Environment and Change

Education and Learning for Sustainable Futures: 50 Years of Learning for Environment and Change

Thứ Tư, 09:53 23/09/2026

How to do Discourse Analysis: A Toolkit

Thứ Sáu, 09:27 06/05/2022

An Introduction to Discourse Analysis: Theory and Method (4th edition)

Thứ Sáu, 09:07 06/05/2022

Programming Language Pragmatics (Fourth Edition)

Thứ Sáu, 09:02 06/05/2022

Giải tích: Giáo trình lý thuyết và Bài tập có hướng dẫn giải – Tập 1

Thứ Năm, 18:06 05/05/2022

Đầu tư tài chính

Thứ Năm, 15:47 05/05/2022