The PORTx/PINx/DDRx system for controlling GPIO pins is specific to AVR microcontrollers - other architectures have similar schemes (with varying numbers of registers to configure the pin modes, different naming schemes for the registers, and depending on the architecture, different sized registers). Consult the datasheet for the processor for the details on the register names to use, and how to use them (the more advanced chips often have more registers dedicated to this)
What is the name of this sketch? Flash_8_LEDs_5Times_As_Fast_As_Possible_Then_Glitch?
Do you really need all 8 outputs flashing absolutely simultaneously? Can you tolerate a little skew? What is the actual flash rate required? The UNO will attempt to flash at 16MHz (with glitches) and the equivalent (working) code will be 48MHz on the M0. That's a big difference.