並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 40 件 / 47件

新着順 人気順

gccの検索結果1 - 40 件 / 47件

  • C言語をマスターしたい人はGCCのバージョン14を使いましょう - pyopyopyo - Linuxとかプログラミングの覚え書き -

    C言語(C++を含む)を習得したい人,ポインタを勉強したい人はgcc-14を使いましょう.難しいところは gcc-14 が丁寧に解説してくれます C言語の難しいところ 例を示します.C言語で記述された,たった6行のソースコードです int main() { int buf[10]; buf[10] = 0; return 0; } このソースコードには問題があります.初見でわかるでしょうか? : : : 問題があるのは buf[10]=0 の部分です.C言語でやりがちなミスですが,これがバグやセキュリティホールの原因になります. C言語が難しい理由は二つあります.この手の問題を見逃しやすい点と,この手の問題を理解することが難しい点の二つです gcc 14 に解説してもらいましょう 上記の6行のソースコードをgcc14を使ってコンパイルしてみます ソースコードのファイル名は test.c と

      C言語をマスターしたい人はGCCのバージョン14を使いましょう - pyopyopyo - Linuxとかプログラミングの覚え書き -
    • 822823回マクロを展開するとGCCが死ぬ - Qiita

      Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?

        822823回マクロを展開するとGCCが死ぬ - Qiita
      • GitHub - tandasat/UEFI-BIOS-Security: Security Camp 2021 & GCC 2022

        You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

          GitHub - tandasat/UEFI-BIOS-Security: Security Camp 2021 & GCC 2022
        • サウジアラビアに買収されたSNKの今。世界TOP10のパブリッシャーを目指す構想を松原社長が語る【GCC2024】|ゲームメーカーズ

          2024年4月5日に、ゲーム開発者向けカンファレンス「GAME CREATORS CONFERENCE ‘24」が開催されました。 本稿は、SNK 代表取締役社長 松原 健二氏が登壇した講演「ゲーム会社の社長は何を考えているか」にフォーカス。どのように株主やユーザー、従業員などのさまざまな立場の人々の意見を取り入れ、目標を実現しているかが語られた本セッションをレポートします。 TEXT / HATA EDIT / 酒井 理恵 登壇したのはSNK 代表取締役社長 松原 健二氏。ゲーム業界の黎明期にITのエンジニアとして日立製作所に入社し、メインフレームやスーパーコンピューターを作っていました。その後、留学、外資系での勤務を経て、インターネットを使ったモノづくりやサービス作りをする会社を探していたところ友人が当時の光栄(現:コーエーテクモホールディングス)を紹介。オンラインゲームの開発を担当す

            サウジアラビアに買収されたSNKの今。世界TOP10のパブリッシャーを目指す構想を松原社長が語る【GCC2024】|ゲームメーカーズ
          • 2021年6月2日 もうFSFにとらわれない ―GCC運営、FSFへの著作権移譲を開発者に求めないポリシーに | gihyo.jp

            Linux Daily Topics 2021年6月2日もうFSFにとらわれない ―GCC運営、FSFへの著作権移譲を開発者に求めないポリシーに GCCプロジェクトを運営するGCC Steering Committeeは6月1日、GCC 9のポイントリリース「GCC 9.4」の公開に合わせ、GCCの著作権譲渡ポリシーの変更を発表、今後はFree Software Foundation(FSF)への著作権譲渡をコントリビュータに依頼しない方針を明らかにした。GCCをはじめとするGNUプロジェクトへのコントリビュータはこれまで自身が開発したプログラムの著作権をFSFに移譲するよう求められてきたが、GCCに関してはその縛りがなくなることになる。 Update to GCC copyright assignment policy GCC Steering CommitteeメンバーであるDavid

              2021年6月2日 もうFSFにとらわれない ―GCC運営、FSFへの著作権移譲を開発者に求めないポリシーに | gihyo.jp
            • GitHub - Rust-GCC/gccrs: GCC Front-End for Rust

              Please note, the compiler is in a very early stage and not usable yet for compiling real Rust programs. gccrs is a full alternative implementation of the Rust language ontop of GCC with the goal to become fully upstream with the GNU toolchain. The origin of this project was a community effort several years ago where Rust was still at version 0.9; the language was subject to so much change that it

                GitHub - Rust-GCC/gccrs: GCC Front-End for Rust
              • gccの最適化指示-Ofastは危険 - Qiita

                はじめに gccの最適化指示である-Ofastをお気軽に使ってる記事を見掛けたので注意喚起的なやつです。 -Ofastとは何ぞや gccのドキュメントから引用 https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#index-Ofast -Ofast Disregard strict standards compliance. -Ofast enables all -O3 optimizations. It also enables optimizations that are not valid for all standard-compliant programs. It turns on -ffast-math, -fallow-store-data-races and the Fortran-specific -fstac

                  gccの最適化指示-Ofastは危険 - Qiita
                • GCC for New Contributors — GCC Contributors Guide 0.1 documentation

                  GCC for New Contributors¶ This is an unofficial guide to GCC’s internals, aimed at new developers, and at plugin authors. Source: https://github.com/davidmalcolm/gcc-newbies-guide I’m a relative newcomer to GCC, so I thought it was worth documenting some of the hurdles I ran into when I started working on GCC, to try to make it easier for others to start hacking on GCC. Hence this guide. Other sou

                  • Progress toward a GCC-based Rust compiler [LWN.net]

                    December 15, 2023 This article was contributed by Ronja Koistinen The gccrs project is an ambitious effort started in 2014 to implement a Rust compiler within The GNU Compiler Collection (GCC). Even though the task is far from complete, progress has been made since LWN's previous coverage, according to reports from the project. Meanwhile, another hybrid and more mature approach to GCC Rust code ge

                    • GCC undefined behaviors are getting wild

                      Happy with my recent breakthrough in understanding C integer divisions after weeks of struggle, I was minding my own business having fun writing integer arithmetic code. Life was good, when suddenly… zsh: segmentation fault (core dumped). That code wasn't messing with memory much so it was more likely to be a side effect of an arithmetic overflow or something. Using -fsanitize=undefined quickly id

                      • GCC 12.1 Compiler Released With AVX-512 FP16, Better RISC-V Support, More C++23 Features - Phoronix

                        GCC 12.1 Compiler Released With AVX-512 FP16, Better RISC-V Support, More C++23 Features Written by Michael Larabel in GNU on 6 May 2022 at 06:35 AM EDT. 6 Comments GCC 12.1 is out today as the first stable release of GCC 12. It also marks 35 years already since the release of GCC 1.0. With a year's worth of changes, GCC 12.1 is a big feature release with a lot of good stuff in it from new C/C++ f

                          GCC 12.1 Compiler Released With AVX-512 FP16, Better RISC-V Support, More C++23 Features - Phoronix
                        • AMDが未発表のZen 5アーキテクチャ向けコンパイル機能をGCCに追加

                          オープンソースのコンパイラ「GCC」にAMDが開発中のCPUアーキテクチャ「Zen 5」に関連すると思われるパッチが導入されました。 AMD Zen 5 "Znver5" CPU Enablement Merged For GCC 14 - Phoronix https://www.phoronix.com/news/AMD-Zen-5-Znver5-Merged-GCC14 AMD adds support for Zen 5 to Linux GCC compiler | Tom's Hardware https://www.tomshardware.com/pc-components/cpus/amd-adds-support-for-zen-5-to-linux-gcc-compiler AMDは、2024年2月に「znver5」と呼ばれるプロセッサを対象にしたパッチを提出していま

                            AMDが未発表のZen 5アーキテクチャ向けコンパイル機能をGCCに追加
                          • cc, gcc, g++の違い - kamocyc’s blog

                            C++は初心者なので調べたことをメモ. C++のコンパイルに使うcc, gcc, g++コマンドの違いについて(Ubuntu 18.04) 元ネタ: c++ - Difference between CC, gcc and g++? - Stack Overflow c++ - What is the difference between g++ and gcc? - Stack Overflow まず,gccとg++の違い.これはC用とC++用の違いである. gccは,GNU C Compilerの意味 g++は,GNU C++ Compilerの意味 なお,gccとg++はともにGNU Compiler Collection(Wikipedia)のcompiler-driver(コンパイラを呼び出すプログラム). ただし,実体としては,g++はgccにオプションを追加して呼び出すことと

                              cc, gcc, g++の違い - kamocyc’s blog
                            • Improvements to static analysis in the GCC 14 compiler | Red Hat Developer

                              I work at Red Hat on GCC, the GNU Compiler Collection. For the last five releases of GCC, I've been working on -fanalyzer, a static analysis pass that tries to identify various problems at compile-time, rather than at runtime. It performs "symbolic execution" of C source code—effectively simulating the behavior of the code along the various possible paths of execution through it. This article summ

                                Improvements to static analysis in the GCC 14 compiler | Red Hat Developer
                              • GCCに27958段ネストした関数を食わせると死ぬ

                                TL;DR f(f(f(f(1))))のように関数をネストして呼び出す時、27958段以上ネストするとGCCが死ぬので気を付けましょう。 はじめに 最近のコンパイラは、関数のインライン展開をやってくれます。例えば

                                  GCCに27958段ネストした関数を食わせると死ぬ
                                • Rust GCC Code Generator "rustc_codegen_gcc" Can Now Bootstrap Rustc - Phoronix

                                  Rust GCC Code Generator "rustc_codegen_gcc" Can Now Bootstrap Rustc Written by Michael Larabel in Programming on 2 April 2022 at 08:00 AM EDT. 122 Comments A huge milestone has been reached in the rustc_codegen_gcc effort that aims to offer a GCC-based Rust compiler alternative to the LLVM-based official Rust compiler. The rustc_codegen_gcc project that builds upon libgccjit for offering ahead-of-

                                    Rust GCC Code Generator "rustc_codegen_gcc" Can Now Bootstrap Rustc - Phoronix
                                  • GCC 12 Adds Support For Using The Mold Linker - Phoronix

                                    GCC 12 Adds Support For Using The Mold Linker Written by Michael Larabel in GNU on 29 December 2021 at 02:47 PM EST. 26 Comments A small but noteworthy change that landed today for the GCC 12 compiler itself is support for using the Mold linker. Released last week was Mold 1.0 as a high-speed linker that can deliver better performance than GNU's old Gold linker and even LLVM's LLD. Mold was design

                                      GCC 12 Adds Support For Using The Mold Linker - Phoronix
                                    • GCCとLLVMの内部の比較

                                      このセッションの内容 現在の主要なCコンパイラであるGCCとLLVM/Clangが実際にどのような処理をするかを追っていきます コンパイラのトレースにはLLVMをバックエンドとして利用しているlldbを用います このセッションの目的 現在当研究室ではContinuation Based Cという言語を開発しています この言語はgcc/clangで実装されており,代々開発が引き継がれています 今回はこの発表を通して実際の開発の流れを体験していきます このセッションを聞くと実際にgcc/clangで開発を出来るかもしれない…!? GCCとLLVM 今回のセッションではGCCとLLVM/Clangを対象に読んでいきます GCCとはGNU Compiler Collectionの略で1985年から開発されているOSSなコンパイラパッケージです C言語で実装され,様々な言語のコンパイルをサポートして

                                      • Bubble sort slower with -O3 than -O2 with GCC

                                        I made a bubble sort implementation in C, and was testing its performance when I noticed that the -O3 flag made it run even slower than no flags at all! Meanwhile -O2 was making it run a lot faster as expected. Without optimisations: time ./sort 30000 ./sort 30000 1.82s user 0.00s system 99% cpu 1.816 total -O2: time ./sort 30000 ./sort 30000 1.00s user 0.00s system 99% cpu 1.005 total -O3: time .

                                          Bubble sort slower with -O3 than -O2 with GCC
                                        • [Pure C] Clang is better than GCC

                                          Sorry for the provocative title, but I'm too emotional these days. This code: #include <stdio.h> #include <string.h> struct tmp { int x, y, z; }; int main() { struct tmp* m_result_original=NULL; struct tmp* m_result_my_version=NULL; // m_result_original=do_something_version_1(); // m_result_my_version=do_something_version_2(); if (memcmp(m_result_original, m_result_my_version, sizeof(struct tmp)!=

                                          • GitHub - rust-lang/rustc_codegen_gcc: libgccjit AOT codegen for rustc

                                            You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                              GitHub - rust-lang/rustc_codegen_gcc: libgccjit AOT codegen for rustc
                                            • 【Windows10 WSL2/Ubuntu 20.04 LTS】gcc, make などの開発ツールをインストールして使う

                                              下記コマンドを実行して、ビルドツールをインストール。 $ sudo apt install build-essential 確認 gccとmakeコマンドが実行できるか確認 $ gcc --version gcc (Ubuntu 9.3.0-10ubuntu2) 9.3.0 Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ make --version GNU Make 4.2.1 Built for x86_64-pc-linux-gnu

                                                【Windows10 WSL2/Ubuntu 20.04 LTS】gcc, make などの開発ツールをインストールして使う
                                              • EmacsWiki: Gcc Emacs

                                                GccEmacs refers to the --with-native-compilation configuration option when building Emacs, which adds support for compiling EmacsLisp to native code using libgccjit. All of the Elisp packages shipped with Emacs are native-compiled, providing a noticeable performance improvement out-of-the-box. Third-party packages are also compiled to achieve further performance improvements. The official developm

                                                • A Rust-in-GCC update [LWN.net]

                                                  Hi everyone, Since November 2020, I've worked full-time on the Rust front-end for GCC, thanks to Open Source Security, Inc and Embecosm. As a result, I am writing to this mailing list to seek feedback from the collective experience here early to plan a path for upstreaming the front-end into GCC. 1. What is the actual process of merging a prominent feature like this upstream - How do we review thi

                                                  • The state of static analysis in the GCC 12 compiler | Red Hat Developer

                                                    Building a static analyzer into the C compiler offers several advantages over having a separate tool, because the analyzer can track what the compiler and assembler are doing intimately. As a Red Hat employee, I work on GCC, the GNU Compiler Collection. Our static analyzer is still experimental but is making big strides in interesting areas, including a taint mode and an understanding of assembly-

                                                      The state of static analysis in the GCC 12 compiler | Red Hat Developer
                                                    • M1 MacでC++の競プロ用のGCC環境構築 - Qiita

                                                      Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?

                                                        M1 MacでC++の競プロ用のGCC環境構築 - Qiita
                                                      • gccの-rdynamic option 調査メモ - Qiita

                                                        はじめに gccの-rdynamic optionの調査メモ。 gcc 9.1.0, glibc 2.29を対象に調査した。 基本内容に差はないと思うが、target archはx86_64-pc-linux-gnu。 TL;DR -rdynamicオプションはリンク時のみ効果がある。 -rdynamicオプションを適用すると、共有ライブラリから実行ファイルのシンボル情報を動的に取得できるので、バックトレースの表示などに使われる。 -rdynamicオプションを適用することで、共有ライブラリとして利用可能な実行ファイルを作成できる。 -rdynamicオプションを適用するとシンボルバッティングや意図せず共有ライブラリに制御されてしまうリスクが増えるので、明確に目的がないなら通常は無効にしておく。 gcc,glibcのソースコードは面白い。 gccのspecファイルむずい。 公式ドキュメント

                                                          gccの-rdynamic option 調査メモ - Qiita
                                                        • Adding a Rust compiler front end to GCC [video] | Hacker News

                                                          Because there is often some confusion, note that there are two different projects in this space with different approaches.The project discussed in the video above is a new front end to GCC (written in C++, as is typical for GCC frontends) and is developed here: https://github.com/Rust-GCC/gccrs The other project involves plugging GCC's backend into the existing rustc frontend, and is developed her

                                                          • QNAP NAS に gcc インストール | IwaoDev

                                                            以前調べた時は,Synology NAS と同様に面倒だと思ったが… 検索すると QNAPにEntware-stdをインストールする Microsoft Windows [Version 10.0.18362.1016] (c) 2019 Microsoft Corporation. All rights reserved. C:\Users\Iwao>\\WDCloud\Public\Document\bat\ssh_ts253d.bat C:\Users\Iwao>cd C:\Users\Iwao\AppData\Local\Temp C:\Users\Iwao\AppData\Local\Temp>ssh -l Iwao -p 22 ts253d Iwao@ts253d's password: [Iwao@TS253D ~]$ gcc -sh: gcc: command not fo

                                                            • New C++ features in GCC 12 | Red Hat Developer

                                                              Version 12.1 of the GNU Compiler Collection (GCC) is expected to be released in April 2022. Like every major GCC release, this version will bring many additions, improvements, bug fixes, and new features. GCC 12 is already the system compiler in Fedora 36. GCC 12 will also be available on Red Hat Enterprise Linux in the Red Hat Developer Toolset (version 7) or the Red Hat GCC Toolset (version 8 an

                                                                New C++ features in GCC 12 | Red Hat Developer
                                                              • 金属加工サンプルお取り寄せキャンペーン|金属加工用レーザー加工機のコンパクトモデル GCCシリーズ FMC280 | コムネット

                                                                こんな事でお困りではないですか? こんな事でお困りではないですか? 薄板金属の外注費が高く、納期もかかって困っている。 小ロット品は、加工費も割高で、受けてもらえないことがある。 商品のデザインによっては、希望する仕上がりにならないことがある。 レーザーがあれば、お困りごとを解決できます! 内製化することで、外注コストを大幅に削減することができます。 たった一つでも、直ぐに生産ができ、最短の納期で納品できます。 繊細なデザインでも、イメージの通りに制作することができます。 →→→ コムネットの金属加工用レーザー加工機「GCCシリーズ FMC280」なら、御社のお悩みを解決できます。 金属のレーザー加工サンプルをお取り寄せする FMC280の特徴 金属板を簡単に切断できる、コムネットの金属加工用レーザー加工機のコンパクトモデル「GCCシリーズ FMC280」のご紹介。 スペック情報 レーザー

                                                                  金属加工サンプルお取り寄せキャンペーン|金属加工用レーザー加工機のコンパクトモデル GCCシリーズ FMC280 | コムネット
                                                                • FreeDOSとi8086版GCC|Dr.にしだ

                                                                  1981年に発売されたIBM-PCは、CPUとして"Intelプロセッサ i8088"を搭載していました。i8088は、i8086のデータバス8ビット版ですから(i8086のデータバスは16ビット)、IBM-PCアーキテクチャを理解するためには、i8086の知識が必要になるのです。 そして、このIBM-PCに搭載されていたOSが"PC DOS"であり、これはビルゲイツ率いる当時生まれたばかりのMicrosoft社が開発した「MS-DOSのIBM-PC版OEM製品」。 ですから、IBM-PCを味わうためには、i8086とMS-DOSの知識が必要になります。MS-DOSは、もはやその役目を終えたとはいえ、Microsoft社の商品ですから、勝手にコピーして配布する訳にはいきません。幸いなことに『FreeDOS』という神プロジェクトが、配布自由なDOS互換OSと関連ツールを開発し、公開してくれて

                                                                    FreeDOSとi8086版GCC|Dr.にしだ
                                                                  • GCC Rust – How it can be achieved – Embecosm

                                                                    • バンダイナムコスタジオによる“ゲームサウンドお助け内製ツール” 6選。ボイス音量の自動調整や「声で入力できる」検索ツールを手がけるテクニカルサウンドチームの仕事【GCC 2025】|ゲームメーカーズ

                                                                      2025年3月28日、大阪府立国際会議場(グランキューブ大阪)にて、ゲーム開発者向けカンファレンスイベント「ゲームクリエイターズカンファレンス’25(GCC25)」が開催されました。 5年ぶりの復活となった昨年に続いての開催となった今回は、講演数が昨年の倍となる24に増え、スポンサーブースも展開。約700人の来場者が詰めかける大規模イベントとなりました。 そんなカンファレンスの中から、本稿では株式会社バンダイナムコスタジオの開発現場で活躍するさまざまなツールが紹介されたセッション「ゲームサウンド開発の裏側で活躍するツールや技術」の内容をレポートいたします。 TEXT / ハル飯田 EDIT / 神山 大輝

                                                                        バンダイナムコスタジオによる“ゲームサウンドお助け内製ツール” 6選。ボイス音量の自動調整や「声で入力できる」検索ツールを手がけるテクニカルサウンドチームの仕事【GCC 2025】|ゲームメーカーズ
                                                                      • The simpler alternative to GCC-RS

                                                                        The GCC-RS project, which can be summed up as “Rewrite the Rust compiler in C++”, got a bit of media attention lately. In this post I’ll try to convince you that all the stated benefits of it can be achieved without necessitating a rewrite by leveraging rustc_codegen_gcc instead. All of the opinions expressed in this article are my own. They do not represent the opinions of any organizations I may

                                                                        • 2020年7月31日号 gcc10へのシフト・クラウドイメージの公開終了方針 | gihyo.jp

                                                                          groovyの開発 groovyの開発が当初予想されていたとおり、最初の山場を迎えつつあります。「⁠7月ぐらいにgcc-10 as defaultと書いてある」という予定のとおりに[1]⁠、7月にGCC9から10への切り替えが行われました。ここから全アーカイブのtest rebuildが行われ、コンパイルできない(FTBFS)等の問題を潰していく流れになります。 これそのものは利用者に大きな影響を及ぼさないはずなのですが、並行して行われているcoreutils 8.32への更新や、8月下旬に行われるglibc-2.32への更新により、何かが壊れたり、これまで動いていたものが一時的に動かなくなったり、といった事象に見舞われるかもしれません。開発版で暮らしているような場合は予備マシンを準備しておく頃合いです[2]⁠。 その他のニュース クラウドイメージの公開終了方針について。これまであまり明確

                                                                            2020年7月31日号 gcc10へのシフト・クラウドイメージの公開終了方針 | gihyo.jp
                                                                          • Nvidia Driver, CUDA, cuDNN, gcc, g++のインストール(Ubuntu 22.04 on MacBookPro 15" Late 2013) - Note to Self by notekunst

                                                                            CUDA と cuDNN の適切なバージョンは GPU に応じて異なります。私の MacBookPro の GPU(GeForce GT 750M)のアーキテクチャは Kepler で、Compute Capability は3.0です。この GPU を用いる試行錯誤の結果、以下の組み合わせを採用しました。 Display Driver 418.113 CUDA 10.1 cuDNN 7.6.5 gcc, g++ 8.5 以下、インストール作業の記録です。 Display Driver CUDAのバージョン CUDA のインストール gcc-8.5 のインストール cuDNN のバージョン cuDNN のインストール Display Driver ubuntu 22.04 のインストール時に"Install third-party..."をチェックしたからか、最初から以下のドライバが使用可

                                                                              Nvidia Driver, CUDA, cuDNN, gcc, g++のインストール(Ubuntu 22.04 on MacBookPro 15" Late 2013) - Note to Self by notekunst
                                                                            • GCCでのエンコーディング指定方法 | menonfled

                                                                              こんにちは、めのんです! 昨日の「文字の正体は整数値」の中で少し触れた、GCCでコンパイルオプションを使ってソース文字集合と実行文字集合を指定する方法について今回はご紹介することにします。 実際には文字集合というよりは文字のエンコーディングを指定する方法なんですけどね。 具体的なコンパイルオプションをご紹介する前に、GCCのデフォルトのエンコーディングについてお話ししておく必要がありますね。 コンパイルオプションで何もしていしなければ、ソースファイルのエンコーディングも実行プログラムが使用するエンコーディングもUTF-8になります。 ソースファイルの先頭にBOM(バイトオーダーマーク)があってもなくてもかまいませんが、いろいろな処理系との互換性を考えると付けておいた方がいいかもしれません。 次にエンコーディングを明示的に指定するためのコンパイルオプションをご紹介します。 ソースコードのエン

                                                                                GCCでのエンコーディング指定方法 | menonfled
                                                                              • gccで各関数が使用しているスタックサイズを出力するオプション - いろいろ備忘録日記

                                                                                概要 プログラムがいきなり落ちた gcc の -fstack-usage オプション 現在のスタック領域のサイズを調べる 試してみる makefile github にサンプルプロジェクトをアップ 参照情報 概要 忘れないうちメモメモ。こういうのは知ってるのと知らないので手間が大きく変わりますね・・・。 プログラムがいきなり落ちた 自分が書いたプログラムではないんですが、動かしていると特定の処理パターンを通したときにいきなり死ぬという状況が発生。 C言語なので、本当にスンって死んでくれます・・w いろんなところをコメントアウトしたり、printfデバッグ入れたりして箇所は特定。 最終的にいろいろ調べたところの結果が「デフォルトのスタックサイズを超える割当をしてるのが原因」でした。これはアカン・・。 で、修正するのは良いとして、もうちょいマシな調べ方ないのかしら?って思いました。 手作業すぎ

                                                                                  gccで各関数が使用しているスタックサイズを出力するオプション - いろいろ備忘録日記
                                                                                • GCC 11がリリース

                                                                                  Free Software Foundationは米国時間2021年4月27日、GNU Compiler Collection(コンパイラーコレクション)の最新版「GCC 11」をリリースした。バイナリーページでは、AIXやDOS(DJGPPベース)、HP-UX、Solaris 2、macOS、Windows(CygwinおよびMinGW)などバイナリーファイル、もしくは国内ミラーサイトからソースコードを入手できる。Changelogによれば、前バージョンと比較してIntelやAMD、ARMプロセッサーのサポートや、C++の既定をC++17に変更し、C++20のサポート改善やC++23の初期機能の追加、次期C言語となるC2Xへの対応準備を開始した。 Linux上のGCC 11。正しくはバージョン11.1.0となる この他にも既定のデバッグ形式をDWARF 5に切り替え、コンパイル対象がAR

                                                                                    GCC 11がリリース