From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B6460432CA; Tue, 7 Nov 2023 20:32:23 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7F865402D4; Tue, 7 Nov 2023 20:32:23 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 4F3DA402BE for ; Tue, 7 Nov 2023 20:32:21 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id A754220B74C0; Tue, 7 Nov 2023 11:32:20 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com A754220B74C0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1699385540; bh=u5Y0dUC7WxevZciK6eH4udlklf386T4WKEymyqRu0qw=; h=Date:From:To:Subject:From; b=iMasOq+hrJPjSaIMbpDFLMZvXC4BnsEK4oasNPly28OIWQ451MqjesJikzXQaTB0T Rnhzo2+nRb3Wj/8O8lTIiaoTZR1gczetRah4avCLI0yPs5Ub735I5JtbP7LSQKEkEz G/WhRhFXm7RZEe8za4FEYpSXrNvV2oYCDQruvjY0= Date: Tue, 7 Nov 2023 11:32:20 -0800 From: Tyler Retzlaff To: dev@dpdk.org Subject: RFC acceptable handling of VLAs across toolchains Message-ID: <20231107193220.GA15232@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 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 storage * conditional compiled code where the msvc leg uses one of the previous two options i'll leave it simple for now, i'd like to hear input rather than provide a recommendation for now. thanks!