You cant unless you COMPLETELY rewrite the game, and get the resources to work with what the 3ds has.So then simply don't emulate it just run it like it's a 3ds program not run it through another program that's taking more power
Here. https://gbatemp.net/threads/gamecube-on-3ds.603333/#post-9955620 goes over why even a gamecube wont ever work