Re: RFC acceptable handling of VLAs across toolchains

2024-03-20 Thread Tyler Retzlaff
So just top posting to revive this discussion. i spent some time going through lib and drivers and the use of VLAs is very extensive. additionally, i have learned that there is some syntax improvement value in using them over alloca() in spite of neither being able to report allocation failure.

Re: RFC acceptable handling of VLAs across toolchains

2023-11-09 Thread Tyler Retzlaff
On Wed, Nov 08, 2023 at 08:51:54AM -0800, Stephen Hemminger wrote: > On Tue, 7 Nov 2023 11:32:20 -0800 > Tyler Retzlaff wrote: > > > hi folks, > > > > i'm seeking advice. we have use of VLAs which are now optional in > > standard C. some toolchains provide a conformant implementation and msvc >

RE: RFC acceptable handling of VLAs across toolchains

2023-11-08 Thread Morten Brørup
> From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Wednesday, 8 November 2023 17.52 > > On Tue, 7 Nov 2023 11:32:20 -0800 > Tyler Retzlaff wrote: > > > hi folks, > > > > i'm seeking advice. we have use of VLAs which are now optional in > > standard C. some toolchains provide a

Re: RFC acceptable handling of VLAs across toolchains

2023-11-08 Thread Stephen Hemminger
On Tue, 7 Nov 2023 11:32:20 -0800 Tyler Retzlaff wrote: > hi folks, > > i'm seeking advice. we have use of VLAs which are now optional in > standard C. some toolchains provide a conformant implementation and msvc > does not (and never will). > > we seem to have a few options, just curious about

RE: RFC acceptable handling of VLAs across toolchains

2023-11-08 Thread Morten Brørup
> From: Tyler Retzlaff [mailto:roret...@linux.microsoft.com] > Sent: Wednesday, 8 November 2023 04.25 > > On Tue, Nov 07, 2023 at 06:31:14PM -0800, Stephen Hemminger wrote: > > On Tue, 7 Nov 2023 11:32:20 -0800 > > Tyler Retzlaff wrote: > > > > > hi folks, > > > > > > i'm seeking advice. we have

Re: RFC acceptable handling of VLAs across toolchains

2023-11-07 Thread Tyler Retzlaff
On Tue, Nov 07, 2023 at 06:31:14PM -0800, Stephen Hemminger wrote: > On Tue, 7 Nov 2023 11:32:20 -0800 > Tyler Retzlaff wrote: > > > hi folks, > > > > i'm seeking advice. we have use of VLAs which are now optional in > > standard C. some toolchains provide a conformant implementation and msvc >

RFC acceptable handling of VLAs across toolchains

2023-11-07 Thread Tyler Retzlaff
hi folks, i'm seeking advice. we have use of VLAs which are now optional in standard C. some toolchains provide a conformant implementation and msvc does not (and never will). we seem to have a few options, just curious about what people would prefer. * use alloca * use dynamically allocated st