Arduino code to attiny45 code

I've never make an attiny45 code or any other tiny. I already made the Arduino code and now I need to convert it to attiny45 code. Does anyone have dictionary for it or where I can learn?

What's the problem?

You may have to add a description of your board to the IDE (boards.txt ...).

Should use the same code but you may have to adjust pins depending how you have things wired and what you intend to do

I don't get it. Could you explain it more specific?

So any other instuctions are just the same? The only differences are the declarations of pins?

Do you have ATtiny45 programmer? Upload it, and if it doesn’t work then post it here in code tags including error message

Essentially. https://youtu.be/po26pBxQp7Y

When you program in Arduino, there is a "implementation" layer of code and functions called the core that manages the low-level magic. The core and your sketch and library code gets compiled by Arduino scripts and gets uploaded to the uC collectively as "firmware."

Over the years, several attiny cores have been created:
Which core for ATTiny85? - Using Arduino / Microcontrollers - Arduino Forum

I don't know why Arduino hides all useful information from former community contributions. After a long search I could find this page.

There is also this explanation of the CLI process; some may find the non-GUI a cleaner explanation than the GUI overwrap.
Sketch build process - Arduino CLI

Nice tutorial here; Program the ATTINY85 with Arduino 1.8.18 (2022) - YouTube

This should work for attiny45 too. Main difference is that attiny85 has more memory.