Programming PICs with Arduino

Hello there,
Quick question, when uploading arduino sketches to other PICs such as ATTINY (using arduino as a ISP) do the library's carry other as well such as SPI library? Therefore, if I uploaded this to an ATTINY will it work the same way as the arduino?

#include "SPI.h"
const int ss = 10;
const int del = 20;

void setup() {
// put your setup code here, to run once:
pinMode(ss, OUTPUT);
SPI.begin();
SPI.setBitOrder(MSBFIRST);
digitalWrite(ss, HIGH);
SPI.setClockDivider(SPI_CLOCK_DIV128);
}

void loop() {
// put your main code here, to run repeatedly:
digitalWrite(ss, LOW);
SPI.transfer(0x00);
digitalWrite(ss, HIGH);
delay(del);
while (1);
}

ATtiny and PIC are two different microcontroller architectures. Are you using an ATtiny or a PIC?

ATTINY13

No, it won't work. You will need to use software SPI with the ATtiny13.