From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 2EBFC4AD12 for ; Mon, 22 Sep 2025 11:48:43 +0000 (UTC) Authentication-Results: ffbox; dkim=fail (body hash mismatch (got b'i8v7J5t4khZk3fXUc2DKV889EsDvuxH4Ry3pBFRN6To=', expected b'J8Wf1cJyeMK2Eq46qafSYiZkUkbp6SuVmfjbyY9R9jY=')) header.d=martin-st.20230601.gappssmtp.com header.a=rsa-sha256 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ffmpeg.org; i=@ffmpeg.org; q=dns/txt; s=mail; t=1758541707; h=date : to : in-reply-to : message-id : references : mime-version : reply-to : subject : list-id : list-archive : list-archive : list-help : list-owner : list-post : list-subscribe : list-unsubscribe : from : cc : content-type : content-transfer-encoding : from; bh=G9eyvmAQUE9C/V+dXXmOX3HzkfGxoR4VZyUOP//wvec=; b=bscVfJpaCD/nNxPc5DMspcMqI+dXRk9JcvWnaMnyzJBObGlRY6gRpx+9Cc2UnsDFFUfDg dF6NESY3BxyZ198lI80CK8fyo9ZmZbKtPsznS+UVhedAfviAujzput9ZRSNgG4PGb2ppNzt PV1OPTuSS4jFh3kgsKYPRyIEbQvCu2ZwTDd0Oi0vRkJy1uMxyyK6wXfMQFWdEhEdt+kIu3s Z5so6HR78VcDYOOsfU3cnTh2RSm3xgNJTMMjNLWERwkkr+uAr3euEVFtcsKpOIDWvJwf48h DRHI/I0ANvs8PEB9jW/2e6f6b59iD897X3uzo7fPZBYpg/JvhuAG1LZoc7XA== Received: from [172.19.0.4] (unknown [172.19.0.4]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 6F3F268EA89; Mon, 22 Sep 2025 14:48:27 +0300 (EEST) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=ffmpeg.org; s=arc; t=1758541706; b=MSorf+QH8obnL1dP4W8gcKj1nnXDYyB9nN5iubkFtDLsLq9D4rqcsyOlr/TE/7FgEiHEq HkKO0XPvyNymy8VmsoyxYIflC2WQQAQny1J0NN9BO/YO05lUJV4bw4joSYM6P88h76/vvTS GjkErWOAhJy9lKmRdqCjeANXW5XUn/Nvtk1UOC7ATx3ueD7UoNkd+2Mi2LhcvGha6tbDCvv F8MGOFQ2oWUzQCenhj7L2o+NY0rGI3VJ0YRz5BlNOY5WKOXYuvPQMMfxleZllpY/l/dUsKf 7XRxyOak851UqLuUuqKQ9mk79/XnzQ383oz031AzGThl0ofn0KSsoU7B4OGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=ffmpeg.org; s=arc; t=1758541706; h=from : sender : reply-to : subject : date : message-id : to : cc : mime-version : content-type : content-transfer-encoding : content-id : content-description : resent-date : resent-from : resent-sender : resent-to : resent-cc : resent-message-id : in-reply-to : references : list-id : list-help : list-unsubscribe : list-subscribe : list-post : list-owner : list-archive; bh=i8v7J5t4khZk3fXUc2DKV889EsDvuxH4Ry3pBFRN6To=; b=MBDRQcLOCsvVyq4EtGFw2e8BSqpUCEQxb3Pult56Kl//Mxu8vNdHHPX5r13liZ5PHZU7r aEL9kc2xklDj41Y2BAloWWsHH3TxoYZ2NCVGafLiCm4jFsyf9YYUAPO5T8QVNzZU16GZEo5 aRGRUY5nBmkS4xKsftLIbHf44p2mLdMLUzg58gdjziQE/jfU65xHP1qJpgWy/uQ2eWScfn7 GyyeyKwHWRZNTXbSu9nKYWUXrRhI9V8ObipDa+IZVF0easpKRtFVVQNWTUWN8P+mPrb2tYo kqxAcY5MRg9b888OnHBXn+2loVNggo9ktDwiSRFtfwo62womXeCd5DGuHV0A== ARC-Authentication-Results: i=1; ffmpeg.org; dkim=pass header.d=martin-st.20230601.gappssmtp.com; arc=none; dmarc=none Authentication-Results: ffmpeg.org; dkim=pass header.d=martin-st.20230601.gappssmtp.com; arc=none (Message is not ARC signed); dmarc=none Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 26EEA68EA78 for ; Mon, 22 Sep 2025 14:48:13 +0300 (EEST) Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-57d5ccd73dfso1137685e87.0 for ; Mon, 22 Sep 2025 04:48:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=martin-st.20230601.gappssmtp.com; s=20230601; t=1758541692; x=1759146492; darn=ffmpeg.org; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=J8Wf1cJyeMK2Eq46qafSYiZkUkbp6SuVmfjbyY9R9jY=; b=LkEyxOvWiKr25rFWkLngOeMMn/r0B/7tkqBgJl9mQZZFasHzEzp6H7ZZE7JdggVBby xwkrLOxv+86BftH/jSbhfdj0mOIijp6DXH5WQUU+4S9AVd7LOuRMtVoNFhNv1k7WHjzR rLiqm+L2tHAmXEieq99F++pAnNFgI7eWI27YWyMylmVQQbCbubDwk8jWTY4WPKtDydCI 73Fn1E73vcoQaOjv53Lbi3FNzfdnS6TPXuDWGQKRQQ8ljgch5exE2YHlippk/8XJykaz +2HTQiuBrccPilFGC6Gh3bXv3Z9/pQfVBSzWHpGo86lvOR+rFDPQRtxAznneeI6uV2s0 wI+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758541692; x=1759146492; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=J8Wf1cJyeMK2Eq46qafSYiZkUkbp6SuVmfjbyY9R9jY=; b=MjIDT/iiT2VHJiFnOJ2C05fVppUsDvknv2I2RuyD4p7ig+/jyW75u5t571Vn+EE3gE 80hZbbHQxj/2rTevW/H8WRusKGLVP9uRbQ1wSR8zRytRPtCEEh0CO39r/+Utj4nF9NPS AqflAX51x0uL/J1WTwlSw+JUcN/ZPiFuytMvqGTCYctoBE3AKc0mUgE6DLnIsWFbpAqh 1KJ5dPWCNtg7iFCqz+FJ0W3GWlS4xICHUDIm0ipn6C//+UfN7rCaf8KNuMHLS/GZaCuE 2CAom4qm1dWEjzJsjvBywZAGsq/9xYXR+fVe4LZWZXLyACQ1xxh9oXwPdI5Z8fLUN6o+ QQLw== X-Gm-Message-State: AOJu0YzGpm12V+rZT/7nQEWPSQnfvWtu/SVb646qKHiwR07n43WODKd5 Rjh9Tpb6INnePdwKrw39mj2LSgIX0btT0Wnw9ptDVtkeX8LKr7c1mJqf7VhzOerLgYPrNBf7iDY wJSYnUA== X-Gm-Gg: ASbGncvEnKQnTFACZUedowSNra/4yvCdTNpaD4pKKJL+BkQok0MY5ZFBfcj+P6OiXpV DJOlSm7BTKrWG6m3ui96yYqFs2GdFRfWiZWTSCESoFSMp3os+G9AjCEAD9h+5zygbqTIlEyRsPY MJQrRA+yNHCiBH9ABKHbtCRcX41PhM1M4LnmcN7OkGnXnXhEu1I73I07x9WI6aUo0rG5rdYbGCk tjRT6Dns1MAIwA12A5szvmy92IwCJCcllAd5SiTDmxmjkBH64LRUsteU/169p/gdPzxrqLD5y4U j/OvYQxntrk8khr5Iyb0kNNqZIG+x5ilCbUZCz9m+4whwRj3yne98PQV1YMd1qIq4Dj7o3U1pZg L9RMYZVLQA2CBHvKgnyeAF6Hs7wGqvd4dPuimulTBh0ut0cHK9N0IGOzQnrdx1AnSH/E5QfgiK8 wWR3xGNcfvcVhKyLuS5g== X-Google-Smtp-Source: AGHT+IETMGZdqMm1AS3fEQHYtuVCq1YvDK6+jhNg4r2cKgKEy+X2p6WGU1maDLA1k8gxh2tpYyyC9w== X-Received: by 2002:a05:6512:61b3:b0:57d:ce1f:f2b5 with SMTP id 2adb3069b0e04-57dce1ff63dmr1329990e87.26.1758541692124; Mon, 22 Sep 2025 04:48:12 -0700 (PDT) Received: from tunnel335574-pt.tunnel.tserv24.sto1.ipv6.he.net (tunnel335574-pt.tunnel.tserv24.sto1.ipv6.he.net. [2001:470:27:11::2]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-57ef9b9bdf7sm573568e87.146.2025.09.22.04.48.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Sep 2025 04:48:11 -0700 (PDT) Date: Mon, 22 Sep 2025 14:48:09 +0300 (EEST) To: "harish.rajaselvan--- via ffmpeg-devel" In-Reply-To: <175853548089.14922.13561628859475164651@f2eeb8e52785> Message-ID: <537b8baa-73e1-e4eb-fd5a-20bb8f1a591@martin.st> References: <175853548089.14922.13561628859475164651@f2eeb8e52785> MIME-Version: 1.0 Message-ID-Hash: WW52Y7LI5DNVDMJPLEUBHOHMTCEG4RUD X-Message-ID-Hash: WW52Y7LI5DNVDMJPLEUBHOHMTCEG4RUD X-MailFrom: SRS0=v8a1=4B=martin.st=martin@ffmpeg.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-ffmpeg-devel.ffmpeg.org-0; header-match-ffmpeg-devel.ffmpeg.org-1; header-match-ffmpeg-devel.ffmpeg.org-2; header-match-ffmpeg-devel.ffmpeg.org-3; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list Reply-To: FFmpeg development discussions and patches Subject: [FFmpeg-devel] Re: [DISCUSSION] Adding ARM64EC support to FFmpeg List-Id: FFmpeg development discussions and patches Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: =?utf-8?q?Martin_Storsj=C3=B6_via_ffmpeg-devel?= Cc: harish.rajaselvan@multicorewareinc.com, =?ISO-8859-15?Q?Martin_Storsj=F6?= Content-Type: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit Archived-At: List-Archive: List-Post: On Mon, 22 Sep 2025, harish.rajaselvan--- via ffmpeg-devel wrote: > I have been working on enabling ARM64EC compilation and have > successfully built FFmpeg binaries for this target. To achieve this it > required modifications to the build configuration files and to the > gas-preprocessor.pl script (maintained in > https://github.com/FFmpeg/gas-preprocessor). Should changes to > gas-preprocessor.pl be submitted as a pull request to its repository, or > also sent to this mailing list for review? I'm not sure if we have a policy for this; reviewing it on the mailing list probably gives it more visibility than as a PR in a repo that very few follows. > I would like to submit these patches upstream for review and feedback > from the community in the near future in this thread. Please let us know > if we can proceed with submitting them, or if there are any challenges > we should anticipate for enabling for this target. Feel free to send patches for review - although I cannot guarantee that we are willing to integrate the changes. As far as I can see, for building for ARM64EC with MSVC, the changes required mainly are for passing "-machine:arm64ec" to lib.exe, and for filtering out the -arm64EC option from the compiler command in gas-preprocessor.pl. Such changes probably are straightforward and probably can be accepted. If building with https://github.com/mstorsjo/llvm-mingw/releases (with the latest 2 releases), no such changes are needed, and it's possible to configure a build with just "--cross-prefix=arm64ec-w64-mingw32- --target-os=mingw32 --arch=aarch64". The other, much more major issue, is that all aarch64 assembly may need to be tweaked to work in ARM64EC mode. This may need rewrites (or ugly conditionals) to avoid using registers that are forbidden in ARM64EC mode. (Building with Clang makes this aspect much more straightforward, as Clang gives warnings about the use of forbidden registers, like "warning: register Q25 is disallowed on ARM64EC.".) We would have to see the proposed patches to see if these changes are palatable or if they are too outrageous for us to want to take them upstream. > Additionally, I would like to know the point of contact for hosting > ARM64EC binaries (for example, via btbn or gyan.dev), so that people > targeting this platform can have access to FFmpeg builds for this > target. Upstream ffmpeg can't make any promises about this; you'd have to convince the developers providing those builds to do it. Personally, I'm unconvinced. For users of the plain ffmpeg.exe binaries, I don't see any reason why anyone would want to run an ARM64EC version rather than a plain regular ARM64 build. (The main theoretical reason is if intending to load a binary x86_64 plugin, but I don't know what plugins that would be?) The main reason for wanting an ARM64EC build of ffmpeg is for integrating into an app that still runs in emulated x86_64 mode - then you'd want linking against the libraries and not just using the commandline executable. I'm not familiar with those binary distributions, whether they include such libraries as well, or only the end executables. If they do provide libraries as well, I could see some value in it, but it's of course totally up to them whether they feel it's worth the effort (I doubt it). // Martin _______________________________________________ ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org