Skip to content

Conversation

@antoyo
Copy link
Contributor

@antoyo antoyo commented May 26, 2023

Fix #64.

Readme.md Outdated
### How to debug GCC LTO
Run do the command with `-v -save-temps` and then extract the `lto1` line from the output and run that under the debugger
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to wire up -Csave-temps to GCC's -save-temps option?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't remember what's the output of GCC's -save-temps. Does cg_llvm output LLVM-specific stuff (except some stuff done manually like the bitcode used for LTO)?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LLVM doesn't produce intermediate files afaik. It keeps everything in memory until rustc explicitly tells it to either write bitcode or an object files.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, so I'll keep it that way for now and we'll see later.

@antoyo antoyo force-pushed the feature/lto_2023-05-12 branch from 9d177d3 to 1da9a51 Compare June 17, 2023 17:54
@antoyo antoyo force-pushed the feature/lto_2023-05-12 branch 11 times, most recently from 6266d40 to aa701c0 Compare August 19, 2023 01:11
@antoyo antoyo force-pushed the feature/lto_2023-05-12 branch 14 times, most recently from 8679c60 to fd4dee2 Compare August 21, 2023 16:41
@antoyo antoyo force-pushed the feature/lto_2023-05-12 branch 10 times, most recently from 31e7433 to 47de037 Compare August 25, 2023 19:17
@antoyo antoyo force-pushed the feature/lto_2023-05-12 branch 8 times, most recently from 9d62918 to 6b6000b Compare August 29, 2023 18:31
@antoyo antoyo mentioned this pull request Aug 29, 2023
@antoyo antoyo force-pushed the feature/lto_2023-05-12 branch 3 times, most recently from 9aa28b0 to e00e89c Compare August 30, 2023 22:33
@antoyo antoyo force-pushed the feature/lto_2023-05-12 branch from e00e89c to 62867dc Compare August 31, 2023 00:29
@antoyo antoyo merged commit 4e41a8a into master Aug 31, 2023
@antoyo antoyo deleted the feature/lto_2023-05-12 branch August 31, 2023 01:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for LTO

3 participants