Click here to Skip to main content
15,565,403 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: I like C more than I thought I would Pin
den2k8814-Sep-22 22:19
professionalden2k8814-Sep-22 22:19 
GeneralRe: I like C more than I thought I would Pin
Member 1330167915-Sep-22 1:00
Member 1330167915-Sep-22 1:00 
GeneralRe: I like C more than I thought I would Pin
David O'Neil15-Sep-22 7:21
professionalDavid O'Neil15-Sep-22 7:21 
GeneralRe: I like C more than I thought I would Pin
inlandchris114-Sep-22 22:34
inlandchris114-Sep-22 22:34 
GeneralRe: I like C more than I thought I would Pin
honey the codewitch14-Sep-22 23:14
mvahoney the codewitch14-Sep-22 23:14 
GeneralRe: I like C more than I thought I would Pin
giulicard14-Sep-22 22:57
giulicard14-Sep-22 22:57 
GeneralRe: I like C more than I thought I would Pin
honey the codewitch14-Sep-22 23:13
mvahoney the codewitch14-Sep-22 23:13 
GeneralRe: I like C more than I thought I would Pin
giulicard14-Sep-22 23:25
giulicard14-Sep-22 23:25 
honey the codewitch wrote:
Absolutely, although I would not use STL and and Boost on most IoT class MCUs, and the reason his heap fragmentation.


I understand, but I wasn't talking about STL containers: I was talking about "algorithms". Many ready-to-use algorithms only work on data in place. However, you can use STL algorithms on standard C arrays (basically pointers are "random access iterators", intended as the category, aren't they?). If you like templates can always use std::array which has zero overhead with respect C array.

honey the codewitch wrote:
When you're dealing with say 360KB of usable SRAM (the amount available for use on an ESP32) or less, the struggle is real. STL just takes a big steamer all over your heap.


I started programming MCUs like 6805 in pure assembly up to MC68000 in "pure C". So I know well what are you talking about. Smile | :)

Regards.
GeneralRe: I like C more than I thought I would Pin
honey the codewitch15-Sep-22 0:04
mvahoney the codewitch15-Sep-22 0:04 
GeneralRe: I like C more than I thought I would Pin
Martin ISDN15-Sep-22 0:35
Martin ISDN15-Sep-22 0:35 
GeneralRe: I like C more than I thought I would Pin
honey the codewitch15-Sep-22 0:53
mvahoney the codewitch15-Sep-22 0:53 
GeneralRe: I like C more than I thought I would Pin
Martin ISDN15-Sep-22 3:22
Martin ISDN15-Sep-22 3:22 
GeneralRe: I like C more than I thought I would Pin
honey the codewitch15-Sep-22 0:58
mvahoney the codewitch15-Sep-22 0:58 
GeneralRe: I like C more than I thought I would Pin
Cpichols15-Sep-22 3:23
Cpichols15-Sep-22 3:23 
GeneralRe: I like C more than I thought I would Pin
Juan Pablo Reyes Altamirano15-Sep-22 5:43
Juan Pablo Reyes Altamirano15-Sep-22 5:43 
GeneralRe: I like C more than I thought I would Pin
sasadler15-Sep-22 7:14
sasadler15-Sep-22 7:14 
GeneralRe: I like C more than I thought I would Pin
honey the codewitch15-Sep-22 7:19
mvahoney the codewitch15-Sep-22 7:19 
GeneralRe: I like C more than I thought I would Pin
rjmoses18-Sep-22 0:39
professionalrjmoses18-Sep-22 0:39 
GeneralRe: I like C more than I thought I would Pin
honey the codewitch18-Sep-22 0:49
mvahoney the codewitch18-Sep-22 0:49 
GeneralRe: I like C more than I thought I would Pin
rjmoses19-Sep-22 1:29
professionalrjmoses19-Sep-22 1:29 
GeneralRe: I like C more than I thought I would Pin
Clive Hudson23-Sep-22 6:52
Clive Hudson23-Sep-22 6:52 
GeneralRe: I like C more than I thought I would Pin
honey the codewitch23-Sep-22 8:09
mvahoney the codewitch23-Sep-22 8:09 
AnswerPrograming gut feeling - ** Update! ** Pin
megaadam14-Sep-22 0:37
professionalmegaadam14-Sep-22 0:37 
AnswerRe: Programing gut feeling Pin
honey the codewitch14-Sep-22 0:39
mvahoney the codewitch14-Sep-22 0:39 
AnswerRe: Programing gut feeling Pin
CPallini14-Sep-22 1:27
mveCPallini14-Sep-22 1:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.