Re: [Sdcc-user] Possible changes to inline assembler syntax

2022-07-22 Thread Philipp Klaus Krause
Am 15.07.22 um 17:10 schrieb Maarten Brock: Ok, so the proper way to 'escape' the # inside a macro definition is by using another macro. Yes. Just like other special characters, such as parentheses, etc. That is fine by me. We should probably put this in the manual even though it is standar

Re: [Sdcc-user] Possible changes to inline assembler syntax

2022-07-22 Thread Tony Pavlov via Sdcc-user
Hello All, There is a pragma for disabling individual warnings by number. But seems like no pragma to restore its original state? pragma save/restore does not affect warnings? -- Best regards, Tonymailto:unt...@mail.ru __

Re: [Sdcc-user] Possible changes to inline assembler syntax

2022-07-22 Thread Maarten Brock
Tony Pavlov via Sdcc-user schreef op 2022-07-22 14:17: Hello All, There is a pragma for disabling individual warnings by number. But seems like no pragma to restore its original state? pragma save/restore does not affect warnings? Hello Tony, No it doesn't. The mechanism used internally by S

[Sdcc-user] pragma disable_warning

2022-07-22 Thread Tony Pavlov via Sdcc-user
Hello Maarten, Friday, July 22, 2022, 3:26:47 PM, you wrote: >> There is a pragma for disabling individual warnings by number. But >> seems like no pragma >> to restore its original state? pragma save/restore does not affect > >> warnings? MB> No it doesn't. The mechanism used internally by SDCC

Re: [Sdcc-user] pragma disable_warning

2022-07-22 Thread Maarten Brock
Tony Pavlov via Sdcc-user schreef op 2022-07-22 14:33: Hello Maarten, Friday, July 22, 2022, 3:26:47 PM, you wrote: There is a pragma for disabling individual warnings by number. But seems like no pragma to restore its original state? pragma save/restore does not affect > warnings? MB> No it

Re: [Sdcc-user] pragma disable_warning

2022-07-22 Thread Philipp Klaus Krause
Am 22.07.22 um 16:11 schrieb Maarten Brock: I don't know which are "the inline functions" nor which are "those warnings". Why not just fix what these warnings complain about? From my experience: inline functions (i.e. functions declared inline) are often called with constant parameters, r

Re: [Sdcc-user] pragma disable_warning

2022-07-22 Thread Tony Pavlov via Sdcc-user
Hello Maarten, MB> I don't know which are "the inline functions" nor which are "those warnings". MB> Why not just fix what these warnings complain about? i am not a true C developer, but: inline uint8_t inline_some(uint8_t some) { return (some) ? do_some_thing(some) : 0; } inline_some(0);

Re: [Sdcc-user] What are the main (dis)advantages of SDCC vs. non-free compilers?

2022-07-22 Thread Alan Cox
On Thu, 21 Jul 2022 14:06:42 +0200 Philipp Klaus Krause wrote: > Dear SDCC users, > > you have chosen SDCC over non-free alternatives. I'm a bit interested in > knowing the reasons. And also in knowing in which areas you think SDCC > is lacking compared to non-free alternatives. Also: do you u