Embedded Academy
3.96K subscribers
798 photos
118 videos
241 files
250 links
📢 All About Embedded in Persian and English

Embedded Systems
IoT
AI
Machie Vision

در سایر شبکه ها:
aparat.com/embedded
instagram.com/embedded_ir
Twitter.com/embedded_ir

Admin: @embeded
Download Telegram
@embeddedReal_Time_C_Efficient_Object_Oriented_and_Template_Microcontroller.pdf
4.3 MB
📖 #دانلود_کتاب

🔸 سی پلاس پلاس بلادرنگ!

👈 راهنمای عملی برنامه نویسی بلادرنگ سیستم‌های نهفته مبتنی بر میکروکنترلر به زبان ++C با تکیه بر دو ویژگی شی گرایی و Template


📇 #Springer
#embedded
#CPP #Microcontroller
🔸 #دانلود_کتاب های مرتبط با #مهندسی_نهفته را دنبال کنید.👇
@embedded
1
Embedded Academy
@embeddedReal_Time_C_Efficient_Object_Oriented_and_Template_Microcontroller.pdf
#نکات_نهفته؛

👈 مراحل کامپایل تا فلش یک برنامه روی میکروکنترلر
🔺 صفحه‌ای از این کتاب
#Cpp
#Programming
🔸 نکات نهفته را دنبال کنید.
🔺 @embedded
1
Forwarded from Embedded Academy
🔸 کتابهایی که براساس تجربه و دانش نویسندگان «استک آور فلو» نوشته شده است.

👈 مجموعه کتاب های GoalKicker
توسط نویسندگان استک آور فو (Stackoverflow) تهیه شده است که در حوزه های مختلف برنامه نویسی منتشر شده است.

کتاب آموزش برنامه نویسی Cpp از این مجموعه را می توانید از اینجا دانلود کنید.

#Cpp
#Programming
#Book
@embedded
👍3
Craig Scott - Professional CMake_ A Practical Guide (2022).pdf
5.6 MB
#book
📖 Professional #CMAKE
👉 A Practical Guide

✍️ Craig Scott

2022

🔗 #Build #Linker #Programming #Make #CPP #C
@embedded
😍42
Embedded Academy
#تاریخچه "سیستم نهفته" 40 📆1979 🎯 فناوری زبان برنامه نویسی بیارنه استراس تروپ ( Bjarne Stroustrup) دانشمند علوم کامپیوتر دانمارکی در آزمایشگاه بل زبان ++C را توسعه داد. #History #CPP @embedded
🔺Comparision of C++ and Posix Threads

✍️ B4b4k

What is the difference between using the C++ std threads and POSIX threads?

API: The API for C++ std threads and POSIX threads are different, with different function names and parameters. The C++ std thread library is part of the C++ standard library and provides a C++ interface, while the POSIX threads library is a separate library that provides a C interface.

Implementation: The implementation of C++ std threads and POSIX threads may differ depending on the specific platform and implementation details. C++ std threads are typically implemented using a combination of user-level and kernel-level threads, while POSIX threads are typically implemented using kernel-level threads.

Portability: C++ std threads are part of the C++ standard library, which makes them more portable than POSIX threads, which are a separate library and may not be available on all platforms.

Exception handling: C++ std threads support exception handling, while POSIX threads do not. This means that in C++ std threads, exceptions can be propagated across thread boundaries, while in POSIX threads, exceptions must be caught and handled within the same thread.

Synchronization primitives: C++ std threads provide a set of synchronization primitives, such as mutexes, condition variables, and atomic operations, that are designed to work with the C++ language and its memory model. POSIX threads provide similar synchronization primitives, but they are designed to work with the C language and may require more low-level manipulation of shared memory.


#Cpp
#Multithreading
#POSIX

@embedded
👍6😍21👎1🔥1
Embedded Academy
🔺Comparision of C++ and Posix Threads ✍️ B4b4k What is the difference between using the C++ std threads and POSIX threads? API: The API for C++ std threads and POSIX threads are different, with different function names and parameters. The C++ std thread…
One line down, more efficient: Tail Recursion

📌 B4b4k

Recursive functions are known for programmers, but it uses the call stack and has stack overflow risk. but simple change results in a big difference. this change is called "tail recursive". The tail recursion is that kind of recursion in which the recursive call is made at the end of the function.
Consider this formal recursion:

unsigned int fact(unsigned int n)
{
if (n <= 0)
return 1;
return n * fact(n - 1);
}

Can Change to the Tail-recursion version as follows:
unsigned int factTail(unsigned int n, unsigned int a)
{
if (n == 1)
return a;
return factTail(n - 1, n * a);
}
unsigned int fact(unsigned int n) { return factTail(n, 1); }

Note in this version there is no statement after the recursive call.
While computers execute recursive with the help of stacks By using tail recursive instead of formal or head recursive, compilers (such as GCC) can transform this to loop and eliminates stack overflow risk and decrease space complexity from O(n) to O(1).

#Tips #Algorithms #Cpp
@embedded
👍9👏21
Forwarded from Embedded Academy
📖 #دانلود_کتاب

🔸 سی پلاس پلاس بلادرنگ!

👈 راهنمای عملی برنامه نویسی بلادرنگ سیستم‌های نهفته مبتنی بر میکروکنترلر به زبان ++C با تکیه بر دو ویژگی شی گرایی و Template


📇 #Springer
#embedded
#CPP #Microcontroller
🔸 #دانلود_کتاب های مرتبط با #مهندسی_نهفته را دنبال کنید.👇
@embedded
👏21
Forwarded from Embedded Academy
@embeddedReal_Time_C_Efficient_Object_Oriented_and_Template_Microcontroller.pdf
4.3 MB
📖 #دانلود_کتاب

🔸 سی پلاس پلاس بلادرنگ!

👈 راهنمای عملی برنامه نویسی بلادرنگ سیستم‌های نهفته مبتنی بر میکروکنترلر به زبان ++C با تکیه بر دو ویژگی شی گرایی و Template


📇 #Springer
#embedded
#CPP #Microcontroller
🔸 #دانلود_کتاب های مرتبط با #مهندسی_نهفته را دنبال کنید.👇
@embedded
👍61
Embedded Academy
Library introduction: libcpr (c++) "cpr" stands for "Cpp Request" like the Python Request library. This library is a simple wrapper around libcurl but powers you to code faster and less mistakes. Read more about it #cpp #libcurl @embedded
نکات برنامه‌نویسی برای سیستم‌های نهفته

مقاله "برنامه‌نویسی ایمن و کارآمد C++ برای سیستم‌های نهفته" با تدریس آندریاس فرتیگ، مطلبی عالی برای یادگیری تکنیک‌های مدرن C++ است. این دوره بر ویژگی‌های جدید مانند constexpr و consteval تمرکز دارد و با مثال‌های کاربردی مانند پردازش آدرس MAC، چگونگی نوشتن کدهای بهینه و بدون خطا را آموزش می‌دهد. مناسب برای توسعه‌دهندگانی که می‌خواهند از قابلیت‌های C++23 در محیط‌های نهفته استفاده کنند.


The "Safe and Efficient C++ for Embedded Environments" workshop by Andreas Fertig is a great opportunity to learn modern C++ techniques. Focusing on features like constexpr and consteval, it uses practical examples (like MAC address processing) to teach how to write optimized and error-free code. Perfect for developers looking to leverage C++23 in embedded systems.


https://andreasfertig.com/blog/2025/02/cpp-for-embedded-systems-constexpr-and-consteval/

#Cpp
#EmbeddedSoftware
#EmbeddedSystems

@embedded
4👍32