|
Can gcc be integrated in VS Code as a default compiler/debugger?
Advertise here – minimum three posts per day are guaranteed.
|
|
|
|
|
Yeah. If on windows you just have to install something like MiniGW to get gcc to run under windows and then VS Code will detect the compilers.
It doesn't work as well with WSL, but there's an extension for that which I haven't used and seems like work.
There's smoke in my iris
But I painted a sunny day on the insides of my eyelids
So I'm ready now (What you ready for?)
I'm ready for life in this city
And my wings have grown almost enough to lift me
|
|
|
|
|
I should add, there are subtle differences between MSVC and GCC in the way they generate function returns (and possibly other things)
One side effect of this, is calling DirectX or GDI+ functions can lead to crashing with GCC. You have to modify a system header to make it work, but you can do so in a non-destructive manner. I won't get into it here, because it's a lot of stuff, but if you ever run into that situation let me know and I'll give you the deets.
There's smoke in my iris
But I painted a sunny day on the insides of my eyelids
So I'm ready now (What you ready for?)
I'm ready for life in this city
And my wings have grown almost enough to lift me
|
|
|
|
|
honey the codewitch wrote: In essence you can make the compiler run code at compile time to generate code involving complex compile time computations.
Which hopefully even you use very seldom.
I have been doing code generation since the 80's (or perhaps early 90s?)
I have done it in many languages. Mostly one shot but sometimes even as part of the build.
No need to do it as you describe though. There is enough complexity in what I do.
|
|
|
|
|
It's primarily about optimizing but because of the way it works you must design for it.
If it serves the design, I'll use it. For example, my graphics library supports arbitrary binary footprints and representations for pixels. The only way to compute the shifts to get at the individual channels efficiently is to do so during compile time.
One of the places I hated using it, but it was really the only way, is building execution chains, similar to a SQL execution plan except at compile time, to spit graphics at a display or another draw destination in the way that most efficient for it. At runtime, even computing that would have not been worth any savings you'd pick up downstream.
There's smoke in my iris
But I painted a sunny day on the insides of my eyelids
So I'm ready now (What you ready for?)
I'm ready for life in this city
And my wings have grown almost enough to lift me
|
|
|
|
|
You're not even talking in terms of an "option". "Time is pressing": use two browser tabs.
(Use it or lose it)
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
JoeSox wrote: Chris, have you thought of integrating ChatGPT to help people debug?
Better to ask ChatGPT:
ChatGPT, have you thought of registering in CodeProject to help people debug?
This may be more effective and doesn't require any development.
|
|
|
|
|
So the number of "how do I debug my code (that I'm not going to show you)" questions go down, and the number of "how do I get ChatGPT to debug my code (that I'm not going to show you)" go up?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I haven't used it. What's ChatGPT's response to "Plz send codez URGENT!"? 
|
|
|
|
|
ChatGPT is what ALL people will use for urgent code please requests. ChatGPT does not give you negative feedback like "we are not going to do the work for you" or "try Google". Help forums will not be used much in the near future.
|
|
|
|
|
|
Wordle 703 2/6
🟩🟨⬛⬛🟨
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 703 4/6
⬛🟩⬛⬛🟨
⬛🟩⬛⬛🟩
🟩🟩⬛⬛🟩
🟩🟩🟩🟩🟩
Brain not in gear! I forgot to use the yellow I found on the 1st line until the 4th line! 
|
|
|
|
|
Wordle 703 3/6
⬜⬜⬜🟨⬜
⬜🟩🟩⬜⬜
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 703 4/6
⬜⬜⬜⬜⬜
⬜🟨🟩⬜⬜
⬜⬜🟩🟩⬜
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 703 4/6*
⬜🟨⬜⬜🟨
⬜⬜⬜🟨🟨
⬜⬜🟩🟩⬜
🟩🟩🟩🟩🟩
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Wordle 703 4/6
🟨⬜⬜⬜⬜
🟩⬜⬜🟩⬜
⬜🟩⬜⬜⬜
🟩🟩🟩🟩🟩
|
|
|
|
|
🟩🟨⬜⬜🟨
🟩⬜🟨🟨⬜
🟩🟩🟩🟩🟩
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
Wordle 703 4/6
⬛⬛⬛🟩🟨
⬛⬛🟩🟩⬛
⬛⬛🟩🟩🟩
🟩🟩🟩🟩🟩
Ok, I have had my coffee, so you can all come out now!
|
|
|
|
|
Wordle 703 3/6*
⬜⬜🟩⬜🟩
⬜🟨🟩🟨🟩
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 703 5/6*
⬜🟨⬜⬜🟨
⬜⬜⬜🟨🟨
🟨🟨⬜⬜⬜
⬜⬜🟩🟩⬜
🟩🟩🟩🟩🟩
Took the scenic route.
|
|
|
|
|
Wordle 703 5/6
⬜⬜⬜⬜🟨
🟨🟨⬜⬜⬜
⬜🟨⬜🟨⬜
⬜⬜🟩🟩⬜
🟩🟩🟩🟩🟩
not a good start
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
As Microsoft is killing their wiki tool, what do you guys are using to document what needs to be documented? Google gives me a lot of options, but I'm not familiar with any of them. Do you know some software that just works? I need something simple - just indexing, three structure, text search and preferably web based.
Advertise here – minimum three posts per day are guaranteed.
|
|
|
|
|
I use Gatsby to generate HTML from markup, and then I check the markup in under /docs as part of my source tree.
Here's what it looks like:
https://honeythecodewitch.com/gfx/wiki/index.md[^]
It has a selectable dark/light option too.
There's smoke in my iris
But I painted a sunny day on the insides of my eyelids
So I'm ready now (What you ready for?)
I'm ready for life in this city
And my wings have grown almost enough to lift me
|
|
|
|
|
CherryTree is a free and open-source hierarchical note taking application, featuring rich text and syntax highlighting. Data can be stored in a single xml or sqlite file: cherrytree – giuspen[^]
Wiki.js is open source, built upon Node.js. It saves all content directly in Markdown (.md) files and syncs with your remote Git repository: Wiki.js[^]
|
|
|
|